Skip to content

Commit

Permalink
utils: Don't raise queue empty exception on shutdown
Browse files Browse the repository at this point in the history
If the system is shutting down, it is not unexpected that
the queue is empty.
  • Loading branch information
jeffsf committed Feb 12, 2023
1 parent 37b04a2 commit eb94be8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyDE1/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ async def mq_queue_get(mp_queue: multiprocessing.Queue,
except queue.Empty as e:
qexc = e
done = False
if qexc:
if qexc and not abandon_on_event.is_set():
raise qexc
else:
return data
Expand Down

0 comments on commit eb94be8

Please sign in to comment.