diff options
-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 276977a..7b48a1e 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 UnicodeError: + except: return '<bad_repr object at %s>' % id(obj) try: # Convert to "text type" (= unicode) |