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
No related branches found
No related tags found
1 merge request!218Undefined opt when rec fails
......@@ -83,7 +83,7 @@ if 'rec' in procs:
rec_cmd = ['gaudirun.py', os.path.join(sdir, 'options', option_script)]
return_code = subprocess.run(rec_cmd).returncode
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)
process = subprocess.run(['rootls', '-t', rec_file])
......@@ -96,7 +96,7 @@ if 'ana' in procs:
'-o', 'results', '-t', args.nametag]
return_code = subprocess.run(ana_cmd).returncode
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)
......
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