From e0d714cbba2559fe43269a0f36280d982e4f080b Mon Sep 17 00:00:00 2001 From: Romain Dorgueil Date: Sun, 22 Jul 2018 07:58:30 +0200 Subject: [PATCH] bug: fix bad mistake in moving the "empty" catcher. --- bonobo/execution/contexts/node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bonobo/execution/contexts/node.py b/bonobo/execution/contexts/node.py index 784dd8f..4c5cff7 100644 --- a/bonobo/execution/contexts/node.py +++ b/bonobo/execution/contexts/node.py @@ -123,8 +123,6 @@ class NodeExecutionContext(BaseContext, WithStatistics): self.step() except InactiveReadableError: break - except Empty: - sleep(TICK_PERIOD) # XXX: How do we determine this constant? logger.debug('Node loop ends for {!r}.'.format(self)) @@ -133,6 +131,8 @@ class NodeExecutionContext(BaseContext, WithStatistics): self._step() except InactiveReadableError: raise + except Empty: + sleep(TICK_PERIOD) # XXX: How do we determine this constant? except ( NotImplementedError, UnrecoverableError,