Skip to content

Commit

Permalink
Merge pull request #277 from cta-observatory/cherenkov_transparency
Browse files Browse the repository at this point in the history
Solve problem with autocloser in v0.10.8
  • Loading branch information
morcuended authored Feb 12, 2024
2 parents 490b902 + 799450c commit 02da8e3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/osa/scripts/closer.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,13 @@ def daily_datacheck(cmd: List[str]):
log.debug(f"Executing {stringify(cmd)}")

if not options.simulate and not options.test and shutil.which("sbatch") is not None:
job = subprocess.run(cmd, check=True)
job = subprocess.run(
cmd,
encoding="utf-8",
capture_output=True,
text=True,
check=True,
)
job_id = job.stdout.strip()
return job_id
else:
Expand Down

0 comments on commit 02da8e3

Please sign in to comment.