Skip to content

Commit

Permalink
fix(except): move inherit from oserror to syserror
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao committed Jun 16, 2020
1 parent 2b5793f commit 089b934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jina/peapods/pea.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def msg_callback(self, msg: 'jina_pb2.Message') -> Optional['jina_pb2.Message']:
# notice how executor related exceptions are handled here
# generally unless executor throws an OSError, the exception are caught and solved inplace
return self._callback(msg)
except (OSError, zmq.error.ZMQError, KeyboardInterrupt):
except (SystemError, zmq.error.ZMQError, KeyboardInterrupt):
# serious error happen in callback, we need to break the event loop
raise
except NoExplicitMessage:
Expand Down

0 comments on commit 089b934

Please sign in to comment.