Skip to content

Commit

Permalink
Flip overwrite flag (fixes jeremyephron#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
rasa authored and jeremyephron committed Jan 23, 2023
1 parent e481645 commit 8f667c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simplegmail/attachment.py
Original file line number Diff line number Diff line change
@@ -97,7 +97,7 @@ def save(
if self.data is None:
self.download()

if overwrite and os.path.exists(filepath):
if not overwrite and os.path.exists(filepath):
raise FileExistsError(
f"Cannot overwrite file '{filepath}'. Use overwrite=True if "
f"you would like to overwrite the file."

0 comments on commit 8f667c7

Please sign in to comment.