Skip to content
This repository has been archived by the owner on Nov 24, 2019. It is now read-only.

Commit

Permalink
Hotfix v0.8.2
Browse files Browse the repository at this point in the history
Fix missing yarl.URL -> string conversion on JSON dump of posted patch
GIFs
  • Loading branch information
sco1 committed Sep 27, 2018
1 parent 8b1e39f commit 1d13e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/overwatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def saveposted(self, logJSONpath: Path=None):

if self.postedGIFs:
with logJSONpath.open(mode='w') as fID:
json.dump(self.postedGIFs, fID)
json.dump([str(url) for url in self.postedGIFs], fID)
logging.info(f"Saved {len(self.postedGIFs)} OW GIF URL(s)")
else:
logging.info("No OW GIFs to save")
Expand Down

0 comments on commit 1d13e86

Please sign in to comment.