Skip to content

Commit

Permalink
Merge pull request #281 from koreno/fix-hasattr-safely_stringify_for_…
Browse files Browse the repository at this point in the history
…pudb-276

check 'safely_stringify_for_pudb' on the type #276
  • Loading branch information
inducer committed Oct 15, 2017
2 parents 676ee9d + 1d82262 commit e7b1d9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pudb/var_view.py
Expand Up @@ -232,7 +232,7 @@ def type_stringifier(value):
except Exception:
pass

elif hasattr(value, "safely_stringify_for_pudb"):
elif hasattr(type(value), "safely_stringify_for_pudb"):
try:
# (E.g.) Mock objects will pretend to have this
# and return nonsense.
Expand Down

0 comments on commit e7b1d9d

Please sign in to comment.