Skip to content

Commit 9a4eaaa

Browse files
cenkaltiashwoods
authored andcommitted
repr can raise any Exception
1 parent 53129b2 commit 9a4eaaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

raven/utils/json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def default(self, obj):
3434
except KeyError:
3535
try:
3636
return super(BetterJSONEncoder, self).default(obj)
37-
except TypeError:
37+
except Exception:
3838
try:
3939
return repr(obj)
4040
except Exception:

0 commit comments

Comments
 (0)