Skip to content

Commit

Permalink
fix: Flush file after saving (#448)
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre Nicolas Durette <pndurette@gmail.com>
  • Loading branch information
ahmadfantastic and pndurette authored Jan 29, 2024
1 parent cb0e3e7 commit 262c532
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gtts/tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ def save(self, savefile):
"""
with open(str(savefile), "wb") as f:
self.write_to_fp(f)
f.flush()
log.debug("Saved to %s", savefile)


Expand Down

0 comments on commit 262c532

Please sign in to comment.