Skip to content

Commit

Permalink
Fix manual run error
Browse files Browse the repository at this point in the history
  • Loading branch information
rgc99 committed Apr 1, 2021
1 parent 0d564af commit b966427
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ def find_last_by_id(self, id: int) -> IURun:
last_time: datetime = None
last_index: int = None
for i, run in enumerate(self):
if run.parent.id == id:
if run.parent is not None and run.parent.id == id:
if last_time is None or run.end_time > last_time:
last_time = run.end_time
last_index = i
Expand Down

0 comments on commit b966427

Please sign in to comment.