Skip to content
Snippets Groups Projects
Commit a7856d01 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

Undefined opt when rec fails

parent 49689bc4
Branches
No related tags found
1 merge request!218Undefined opt when rec fails
...@@ -83,7 +83,7 @@ if 'rec' in procs: ...@@ -83,7 +83,7 @@ if 'rec' in procs:
rec_cmd = ['gaudirun.py', os.path.join(sdir, 'options', option_script)] rec_cmd = ['gaudirun.py', os.path.join(sdir, 'options', option_script)]
return_code = subprocess.run(rec_cmd).returncode return_code = subprocess.run(rec_cmd).returncode
if return_code is not None and return_code != 0: if return_code is not None and return_code != 0:
print('ERROR running juggler ({})!'.format(opt)) print('ERROR running juggler ({})!'.format(rec_cmd))
exit(1) exit(1)
process = subprocess.run(['rootls', '-t', rec_file]) process = subprocess.run(['rootls', '-t', rec_file])
...@@ -96,7 +96,7 @@ if 'ana' in procs: ...@@ -96,7 +96,7 @@ if 'ana' in procs:
'-o', 'results', '-t', args.nametag] '-o', 'results', '-t', args.nametag]
return_code = subprocess.run(ana_cmd).returncode return_code = subprocess.run(ana_cmd).returncode
if return_code is not None and return_code != 0: if return_code is not None and return_code != 0:
print('ERROR running analysis ({})!'.format(ana)) print('ERROR running analysis ({})!'.format(ana_cmd))
exit(1) exit(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment