mirror of
https://github.com/jazzband/django-ddp.git
synced 2026-03-16 22:40:24 +00:00
Re-raise exceptions after sending error to client.
This commit is contained in:
parent
460e1c685a
commit
89dd3649d7
1 changed files with 2 additions and 2 deletions
|
|
@ -228,9 +228,9 @@ class DDPWebSocketApplication(geventwebsocket.WebSocketApplication):
|
|||
# dispatch to handler
|
||||
try:
|
||||
handler(**kwargs)
|
||||
except Exception as err: # print stack trace --> pylint: disable=W0703
|
||||
traceback.print_exc()
|
||||
except Exception as err: # re-raise err --> pylint: disable=W0703
|
||||
self.error(500, 'Internal server error', err)
|
||||
raise
|
||||
|
||||
def send(self, data, tx_id=None):
|
||||
"""Send `data` (raw string or EJSON payload) to WebSocket client."""
|
||||
|
|
|
|||
Loading…
Reference in a new issue