Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into cbs/spec_update_rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
smiet committed May 30, 2024
2 parents 9c2db06 + eb6b27f commit 2486624
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/simsopt/mhd/vmec.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,11 @@ def run(self):

# Delete the previous output file, if desired:
for filename in self.files_to_delete:
os.remove(filename)
try:
os.remove(filename)
except FileNotFoundError:
logger.debug(f"Tried to delete the file {filename} but it was not found")

self.files_to_delete = []

# Record the latest output file to delete if we run again:
Expand Down

0 comments on commit 2486624

Please sign in to comment.