Recorder run can be None (#5854)
parent
66088377e1
commit
849ae9903c
|
@ -124,6 +124,7 @@ def run_information(point_in_time: Optional[datetime]=None):
|
|||
res = query(recorder_runs).filter(
|
||||
(recorder_runs.start < point_in_time) &
|
||||
(recorder_runs.end > point_in_time)).first()
|
||||
if res:
|
||||
session.expunge(res)
|
||||
return res
|
||||
|
||||
|
|
Loading…
Reference in New Issue