python-socketio - - - error-handling #1031
-
Can't find this (flask-socketio error-handling) equivalent section for python-socketio. Can someone please link to it. Or does it not exist. if that's the case how do you handle exception? I want to emit an event on error from any handler. Please Help! Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
This package does not have configurable error handlers. If an error occurs, the stack trace will be logged and that's it. If you need to have custom logic, then you can use a standard Python solution based on try/except to catch errors in your handlers. If you need this in several handlers, you can implement a decorator that does this. |
Beta Was this translation helpful? Give feedback.
This package does not have configurable error handlers. If an error occurs, the stack trace will be logged and that's it. If you need to have custom logic, then you can use a standard Python solution based on try/except to catch errors in your handlers. If you need this in several handlers, you can implement a decorator that does this.