diff options
Diffstat (limited to 'factory/utils.py')
-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 806b1ec..15dba0a 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 Exception: return '<bad_repr object at %s>' % id(obj) try: # Convert to "text type" (= unicode) |