summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Harwell <flux.adam@gmail.com>2014-10-30 14:26:22 -0500
committerAdam Harwell <flux.adam@gmail.com>2014-10-30 14:26:22 -0500
commit5ee3142abfda0eb8c4cdc572651accf829915990 (patch)
tree09b69a330d47e2a7e22bd13df0a4da69a46def1f
parent3312b7258f0dac3c0ec4601ff31c4ec469d74d58 (diff)
downloadpython-barbicanclient-3.0.0.tar.gz
Remove unnecessary try/except in container delete3.0.0
It appears that the keystone sessions no longer trap the server error responses in an undesirable way, so this is not necessary anymore. Change-Id: Id73593535803fe589b317be923ad469cc0c3682b
-rw-r--r--barbicanclient/containers.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/barbicanclient/containers.py b/barbicanclient/containers.py
index 70dd3a9..41fa401 100644
--- a/barbicanclient/containers.py
+++ b/barbicanclient/containers.py
@@ -650,11 +650,7 @@ class ContainerManager(base.BaseEntityManager):
"""
if not container_ref:
raise ValueError('container_ref is required.')
- try:
- self._api._delete(container_ref)
- except AttributeError:
- raise LookupError('Container {0} could not be deleted. '
- 'Does it still exist?'.format(container_ref))
+ self._api._delete(container_ref)
def list(self, limit=10, offset=0, name=None, type=None):
"""