Skip to content
Snippets Groups Projects

Catch sbatch errors in CLI commands

3 files
+ 3
3
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -99,7 +99,7 @@ def submit_batch(**kwargs):
try:
subprocess.run(['sbatch'],input=script,shell=True,text=True,check=True,capture_output=True)
except subprocess.CalledProcessError as e:
print(f"Error message: {e.stderr.decode()}")
raise subprocess.CalledProcessError(e.stderr.decode())
pass
def submit_tld_groups(df,grp_dir,args):
Loading