summaryrefslogtreecommitdiff
path: root/openstack_dashboard/dashboards/admin/domains
diff options
context:
space:
mode:
Diffstat (limited to 'openstack_dashboard/dashboards/admin/domains')
-rw-r--r--openstack_dashboard/dashboards/admin/domains/tables.py2
-rw-r--r--openstack_dashboard/dashboards/admin/domains/views.py4
-rw-r--r--openstack_dashboard/dashboards/admin/domains/workflows.py4
3 files changed, 5 insertions, 5 deletions
diff --git a/openstack_dashboard/dashboards/admin/domains/tables.py b/openstack_dashboard/dashboards/admin/domains/tables.py
index 702cefe73..66972c35f 100644
--- a/openstack_dashboard/dashboards/admin/domains/tables.py
+++ b/openstack_dashboard/dashboards/admin/domains/tables.py
@@ -111,7 +111,7 @@ class SetDomainContext(tables.Action):
messages.success(request,
_('Domain Context updated to Domain %s.') %
domain.name)
- except:
+ except Exception:
messages.error(request,
_('Unable to set Domain Context.'))
diff --git a/openstack_dashboard/dashboards/admin/domains/views.py b/openstack_dashboard/dashboards/admin/domains/views.py
index dedec4e8f..2a3b3d78a 100644
--- a/openstack_dashboard/dashboards/admin/domains/views.py
+++ b/openstack_dashboard/dashboards/admin/domains/views.py
@@ -50,7 +50,7 @@ class IndexView(tables.DataTableView):
domains.append(domain)
else:
domains = api.keystone.domain_list(self.request)
- except:
+ except Exception:
exceptions.handle(self.request,
_('Unable to retrieve domain list.'))
return domains
@@ -75,7 +75,7 @@ class UpdateDomainView(workflows.WorkflowView):
domain_id)
for field in DOMAIN_INFO_FIELDS:
initial[field] = getattr(domain_info, field, None)
- except:
+ except Exception:
exceptions.handle(self.request,
_('Unable to retrieve domain details.'),
redirect=reverse(DOMAINS_INDEX_URL))
diff --git a/openstack_dashboard/dashboards/admin/domains/workflows.py b/openstack_dashboard/dashboards/admin/domains/workflows.py
index d810553e6..7b01300e4 100644
--- a/openstack_dashboard/dashboards/admin/domains/workflows.py
+++ b/openstack_dashboard/dashboards/admin/domains/workflows.py
@@ -76,7 +76,7 @@ class CreateDomain(workflows.Workflow):
name=data['name'],
description=desc,
enabled=data['enabled'])
- except:
+ except Exception:
exceptions.handle(request, ignore=True)
return False
@@ -121,7 +121,7 @@ class UpdateDomain(workflows.Workflow):
name=data['name'],
description=data['description'],
enabled=data['enabled'])
- except:
+ except Exception:
exceptions.handle(request, ignore=True)
return False
return True