From 9a4eaaacd8c656ecef339a52ca5beb1f5d0b6e32 Mon Sep 17 00:00:00 2001 From: Cenk Alti Date: Thu, 1 Mar 2018 01:14:12 +0300 Subject: repr can raise any Exception --- raven/utils/json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raven/utils/json.py b/raven/utils/json.py index a727f72..d88cdc7 100644 --- a/raven/utils/json.py +++ b/raven/utils/json.py @@ -34,7 +34,7 @@ class BetterJSONEncoder(json.JSONEncoder): except KeyError: try: return super(BetterJSONEncoder, self).default(obj) - except TypeError: + except Exception: try: return repr(obj) except Exception: -- cgit v1.2.1