Skip to content

Commit 5084371

Browse files
KyleSiefringtdaede
authored andcommitted
Get return code from the correct place
1 parent bd96199 commit 5084371

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rd_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def scheduler_tick():
322322
rd_print('Failed to write results for work item',slot.work.get_name())
323323
work_done.append(slot.work)
324324
rd_print(slot.work.log,slot.work.get_name(),'finished.')
325-
elif slot.work.retries < max_retries and not slot.work.run.cancelled and not slot.p.returncode == 98:
325+
elif slot.work.retries < max_retries and not slot.work.run.cancelled and (slot.p.p is None or not slot.p.p.returncode == 98):
326326
slot.work.retries += 1
327327
rd_print(slot.work.log,'Retrying work ',slot.work.get_name(),'...',slot.work.retries,'of',max_retries,'retries.')
328328
slot.work.failed = False

0 commit comments

Comments
 (0)