summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/v2/contrib/simple_tenant_usage.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/api/openstack/v2/contrib/simple_tenant_usage.py b/nova/api/openstack/v2/contrib/simple_tenant_usage.py
index dedc32b44..c93fb5550 100644
--- a/nova/api/openstack/v2/contrib/simple_tenant_usage.py
+++ b/nova/api/openstack/v2/contrib/simple_tenant_usage.py
@@ -157,10 +157,10 @@ class SimpleTenantUsageController(object):
return dtstr
try:
return datetime.strptime(dtstr, "%Y-%m-%dT%H:%M:%S")
- except:
+ except Exception:
try:
return datetime.strptime(dtstr, "%Y-%m-%dT%H:%M:%S.%f")
- except:
+ except Exception:
return datetime.strptime(dtstr, "%Y-%m-%d %H:%M:%S.%f")
def _get_datetime_range(self, req):