We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2fe780 commit 684d718Copy full SHA for 684d718
stackify/log.py
@@ -37,7 +37,7 @@ def from_record(self, record):
37
if k not in RECORD_VARS}
38
39
if data:
40
- self.data = json.dumps(data, default=lambda x: x.__dict__)
+ self.data = json.dumps(data, default=lambda x: hasattr(x, '__dict__') and x.__dict__ or x.__str__())
41
42
if record.exc_info:
43
self.Ex = StackifyError()
0 commit comments