Commits

Erik van Zijst committed baeb5f4

No longer crash when an object fails to __repr__().

Comments (0)

Files changed (1)

dogslow/__init__.py

             return super(SafePrettyPrinter, self).format(
                 obj, context, maxlevels, level)
         except Exception:
-            return object.__repr__(obj)[:-1] + ' (bad repr)>'
+            return object.__repr__(obj)[:-1] + ' (bad repr)>', True, False
 
 def spformat(obj, depth=None):
     return SafePrettyPrinter(indent=1, width=76, depth=depth).pformat(obj)