Skip to content

Commit 4b34bd4

Browse files
authored
Fix fail_hard for sync functions (#6269)
The `else` meant we would, in fact, not fail hard at all.
1 parent bab29c5 commit 4b34bd4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

distributed/worker.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,7 @@ def wrapper(self, *args, **kwargs):
205205
},
206206
)
207207
logger.exception(e)
208-
else:
209-
self.loop.add_callback(_force_close, self)
208+
self.loop.add_callback(_force_close, self)
210209

211210
return wrapper
212211

0 commit comments

Comments
 (0)