We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5d123b commit 755db35Copy full SHA for 755db35
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