summaryrefslogtreecommitdiff
path: root/openstack_dashboard/dashboards/project/containers/forms.py
diff options
context:
space:
mode:
authorKieran Spear <kispear@gmail.com>2013-08-13 16:54:59 +1000
committerKieran Spear <kispear@gmail.com>2013-08-13 17:21:32 +1000
commit242c8df495d8a22bd58797691989852d1b714824 (patch)
tree519d761d1989ca1aca0f98f9dd0cccfaa9f99874 /openstack_dashboard/dashboards/project/containers/forms.py
parentfe659b231a9542e4703c13e7e1173aa7e0767cfc (diff)
downloadhorizon-242c8df495d8a22bd58797691989852d1b714824.tar.gz
Enable H201: do not write "except:"
Fixes all occurrences of this. We have a custom exception handler in Horizon anyway that only catches ClientException in most of these cases, but this commit lets us gate on the other cases. Change-Id: Iea3dc13817f3e5b775b2024424bf3a906da5584b Closes-Bug: #1211657
Diffstat (limited to 'openstack_dashboard/dashboards/project/containers/forms.py')
-rw-r--r--openstack_dashboard/dashboards/project/containers/forms.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/openstack_dashboard/dashboards/project/containers/forms.py b/openstack_dashboard/dashboards/project/containers/forms.py
index ba5d2c87d..1a6378353 100644
--- a/openstack_dashboard/dashboards/project/containers/forms.py
+++ b/openstack_dashboard/dashboards/project/containers/forms.py
@@ -68,7 +68,7 @@ class CreateContainer(forms.SelfHandlingForm):
subfolder_name)
messages.success(request, _("Folder created successfully."))
return True
- except:
+ except Exception:
exceptions.handle(request, _('Unable to create container.'))
@@ -97,7 +97,7 @@ class UploadObject(forms.SelfHandlingForm):
object_file)
messages.success(request, _("Object was successfully uploaded."))
return obj
- except:
+ except Exception:
exceptions.handle(request, _("Unable to upload object."))
@@ -146,7 +146,7 @@ class CopyObject(forms.SelfHandlingForm):
messages.error(request, exc)
raise exceptions.Http302(reverse(index,
args=[wrap_delimiter(orig_container)]))
- except:
+ except Exception:
redirect = reverse(index, args=[wrap_delimiter(orig_container)])
exceptions.handle(request,
_("Unable to copy object."),