diff options
author | anentropic <ego@anentropic.com> | 2014-03-13 18:59:32 +0000 |
---|---|---|
committer | anentropic <ego@anentropic.com> | 2014-03-13 18:59:32 +0000 |
commit | e320cabc58bdb637f24d4b20df8c318a7420a55e (patch) | |
tree | 7c71af0079e58cbbba9f36b680a87c1ae935aa6e /factory | |
parent | 595c47244b0bfce3023c14908c0cc6b6bb4e0aec (diff) | |
download | factory-boy-e320cabc58bdb637f24d4b20df8c318a7420a55e.tar factory-boy-e320cabc58bdb637f24d4b20df8c318a7420a55e.tar.gz |
Update utils.py
Diffstat (limited to 'factory')
-rw-r--r-- | factory/utils.py | 2 |
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) |