You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reason for closing: Stream connection lost: ZeroDivisionError('division by zero')
Exception class: <class 'pika.exceptions.StreamLostError'>
Notice the exception is a StreamLostError instead of a ZeroDivisionError which squashes all details of the inner exception. traceback.print_exc() won't work here because the exception has already been caught.
Some possible fixes:
Add a flag to disable exception handling and raise them to the top like BlockingConnection does
Send traceback information to the callback provided by on_close_callback
The text was updated successfully, but these errors were encountered:
Originally from an SO question but I'll report it here via @lukebakken's request.
SelectConnection
seems to catch all errors and doesn't provide any stack trace information. This makes debugging difficult.For instance, here's an example where it divides by 0 in the
_on_connection_open
callback.And the output:
Notice the exception is a
StreamLostError
instead of aZeroDivisionError
which squashes all details of the inner exception.traceback.print_exc()
won't work here because the exception has already been caught.Some possible fixes:
BlockingConnection
doeson_close_callback
The text was updated successfully, but these errors were encountered: