Fix bug where ws exceptions not being logged (#2213)
* Fix bug where ws exceptions not being logged * Fix t\est
This commit is contained in:
@@ -893,6 +893,8 @@ class Sanic(BaseSanic, metaclass=TouchUpMeta):
|
||||
self.websocket_tasks.add(fut)
|
||||
try:
|
||||
await fut
|
||||
except Exception as e:
|
||||
self.error_handler.log(request, e)
|
||||
except (CancelledError, ConnectionClosed):
|
||||
pass
|
||||
finally:
|
||||
|
||||
Reference in New Issue
Block a user