Skip to content

Commit

Permalink
Fix VOD JSON exporting
Browse files Browse the repository at this point in the history
  • Loading branch information
Brisppy committed Jan 16, 2024
1 parent 58087bf commit cd7b749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twitcharchiver/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ def write_json_file(data, file: Path):
"""
try:
with open(Path(file), "w", encoding="utf8") as _f:
_f.write(json.dumps(data))
_f.write(json.dumps(data, default=str))

except Exception as exc:
log.error('Failed to write json data to "%s". Error: %s', Path(file), exc)
Expand Down

0 comments on commit cd7b749

Please sign in to comment.