Skip to content

Commit

Permalink
🐞 fix: don't break when result is None
Browse files Browse the repository at this point in the history
  • Loading branch information
mic1on committed Nov 22, 2023
1 parent 3406163 commit ced1b58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/onestep/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ def run(self):
self.shutdown()
break
for result in self.broker.consume():
if self._shutdown or result is None:
if self._shutdown:
break
if result is None:
continue
messages = (
result
if isinstance(result, Iterable)
Expand Down

0 comments on commit ced1b58

Please sign in to comment.