Skip to content

Commit

Permalink
Never key error on bad flow pops..
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Jun 26, 2023
1 parent e322e5e commit 0622d7e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion piker/clearing/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,7 @@ def pop(
for the given order id.
'''
return self._flows.pop(oid)
if (flow := self._flows.pop(oid, None)) is None:
log.warning(f'No flow found for oid: {oid}')

return flow

0 comments on commit 0622d7e

Please sign in to comment.