Skip to content

Commit 31bd82b

Browse files
print exception
1 parent fd8567e commit 31bd82b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

sentry_sdk/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,8 @@ def safe_repr(value):
540540
# type: (Any) -> str
541541
try:
542542
return repr(value)
543-
except Exception:
543+
except Exception as e:
544+
print(e)
544545
return "<broken repr>"
545546

546547

tests/test_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,6 @@ def test_databag_depth_stripping(sentry_init, capture_events):
767767
capture_exception()
768768

769769
(event,) = events
770-
print(json.dumps(event))
771770

772771
assert len(json.dumps(event)) < 10000
773772

0 commit comments

Comments
 (0)