Skip to content

Commit

Permalink
add some error reporting to msgpack handler
Browse files Browse the repository at this point in the history
  • Loading branch information
plq committed Jan 31, 2022
1 parent 942c6db commit 322c953
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion spyne/server/twisted/msgpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,14 @@ def dataReceived(self, data):
self._reset_idle_timer()

for msg in self._buffer:
self.process_incoming_message(msg)
try:
self.process_incoming_message(msg)
except Exception as e:
# If you get this error, you are in serious trouble
# This needs to be fixed ASAP
logger.error(
"Error %r while processing incoming data %r", e, msg)
raise

if self.disconnecting:
return
Expand Down

0 comments on commit 322c953

Please sign in to comment.