aboutsummaryrefslogtreecommitdiffstats
path: root/opnfv_testapi/resources/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'opnfv_testapi/resources/models.py')
-rw-r--r--opnfv_testapi/resources/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/opnfv_testapi/resources/models.py b/opnfv_testapi/resources/models.py
index e8fc532..06db995 100644
--- a/opnfv_testapi/resources/models.py
+++ b/opnfv_testapi/resources/models.py
@@ -68,10 +68,10 @@ class ModelBase(object):
elif isinstance(obj, unicode):
try:
obj = self._obj_format(ast.literal_eval(obj))
- except:
+ except Exception:
try:
obj = str(obj)
- except:
+ except Exception:
obj = obj
elif isinstance(obj, list):
hs = list()