Skip to content

Commit

Permalink
Fix fail_hard for sync functions (#6269)
Browse files Browse the repository at this point in the history
The `else` meant we would, in fact, not fail hard at all.
  • Loading branch information
gjoseph92 authored May 13, 2022
1 parent bab29c5 commit 4b34bd4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions distributed/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,7 @@ def wrapper(self, *args, **kwargs):
},
)
logger.exception(e)
else:
self.loop.add_callback(_force_close, self)
self.loop.add_callback(_force_close, self)

return wrapper

Expand Down

0 comments on commit 4b34bd4

Please sign in to comment.