Skip to content
Snippets Groups Projects

Undefined opt when rec fails

Merged Wouter Deconinck requested to merge undefined-var-when-rec-fail into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -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)
Loading