aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--factory/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/factory/utils.py b/factory/utils.py
index 7b48a1e..6f0c763 100644
--- a/factory/utils.py
+++ b/factory/utils.py
@@ -101,7 +101,7 @@ def import_object(module_name, attribute_name):
def _safe_repr(obj):
try:
obj_repr = repr(obj)
- except:
+ except Exception:
return '<bad_repr object at %s>' % id(obj)
try: # Convert to "text type" (= unicode)