Skip to content
Snippets Groups Projects
Commit 9d8411c1 authored by Izzard, Robert Dr (Maths & Physics)'s avatar Izzard, Robert Dr (Maths & Physics)
Browse files

add more checks

parent 7b36e681
No related branches found
No related tags found
No related merge requests found
......@@ -342,11 +342,10 @@ class HPC(condor,slurm):
print("We can join")
try:
# touch joiningfile
if grid_options['HPC_force_join'] == 1:
pathlib.Path(joiningfile).touch(exist_ok=True)
else:
pathlib.Path(joiningfile).touch(exist_ok=False)
x = True if grid_options['HPC_force_join'] == 1 else False
pathlib.Path(joiningfile).touch(exist_ok=x)
try:
print("Calling HPC_join_from_files()")
self.HPC_join_from_files(self,joinfiles)
except Exception as e:
print("Join gave exception",e)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment