Skip to content

Commit

Permalink
Merge pull request #516 from WenjieDu/(fix)saving_overwrite
Browse files Browse the repository at this point in the history
Fix unintended overwrite saving
  • Loading branch information
WenjieDu authored Sep 19, 2024
2 parents 63666fb + ced431f commit 5263088
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pypots/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ def save(
f"❌ File {saving_path} exists. Saving operation aborted. "
f"Use the arg `overwrite=True` to force overwrite."
)
return

try:
create_dir_if_not_exist(saving_dir)
Expand Down

0 comments on commit 5263088

Please sign in to comment.