Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
repr can raise any Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
cenkalti authored and ashwoods committed Apr 18, 2018
1 parent 53129b2 commit 9a4eaaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raven/utils/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def default(self, obj):
except KeyError:
try:
return super(BetterJSONEncoder, self).default(obj)
except TypeError:
except Exception:
try:
return repr(obj)
except Exception:
Expand Down

0 comments on commit 9a4eaaa

Please sign in to comment.