Commits

Erik van Zijst  committed baeb5f4

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

  • Participants
  • Parent commits 64bb309

Comments (0)

Files changed (1)

File 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)