Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ def to_json_serializable(o):
return tuple(to_json_serializable(i) for i in o)
if isinstance(o, list):
return [to_json_serializable(i) for i in o]
if callable(o):
return repr(o)

# Ensure everything is JSON serializable. If this warning is issued, it
# means the given type needs to be added above if possible.
Expand Down
Loading