Skip to content

Commit

Permalink
Fix meaningless warning in case of quota issue
Browse files Browse the repository at this point in the history
  • Loading branch information
paugier committed Jul 16, 2024
1 parent 1fdfab8 commit 5776036
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/fluidsim_core/output/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,11 @@ def _init_path_run(self):
path_run.mkdir(parents=True)
except OSError:
# in case of simultaneously launched simulations
if not path_run.exists():
# in case issues like quota
raise
print(
'Warning: NEW_DIR_RESULTS=True, but path"',
path_run,
f"Warning: NEW_DIR_RESULTS=True, but path {path_run}",
"already exists. Trying a new path...",
)
sleep(1)
Expand Down

0 comments on commit 5776036

Please sign in to comment.