Skip to content

Commit

Permalink
Merge pull request #213 from DUNE-DAQ/plasorak/check-for-run-info
Browse files Browse the repository at this point in the history
Check for the size of run info before accessing it
  • Loading branch information
plasorak authored Jul 26, 2023
2 parents d547c9b + fe1e641 commit cb73635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nanorc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def drain_dataflow(self, timeout:int, force:bool, message:str, **kwargs) -> NoRe
except Exception as e:
self.log.error(f"Couldn't make an entry to elisa, do it yourself manually at {self.logbook.website}\nError text:\n{str(e)}")

if self.cfgsvr:
if self.cfgsvr and self.runs:
self.cfgsvr.save_on_stop(self.runs[-1].run_number)

self.execute_command("drain_dataflow", node_path=None, raise_on_fail=True, timeout=timeout, force=force)
Expand Down

0 comments on commit cb73635

Please sign in to comment.