From 292ddc5a36df18a8d7c17629c0ca750974117faa Mon Sep 17 00:00:00 2001 From: rodneymelchers Date: Mon, 17 May 2021 13:18:46 +0200 Subject: [PATCH] Update views.py This caused an error both with installation and running --- django_socketio/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_socketio/views.py b/django_socketio/views.py index 2c51e4e..45363cd 100644 --- a/django_socketio/views.py +++ b/django_socketio/views.py @@ -54,7 +54,7 @@ def socketio(request): log_message = format_log(request, message_type, message) if log_message: socket.handler.server.log.write(log_message) - except Exception, exception: + except Exception as exception: from traceback import print_exc print_exc() events.on_error.send(request, socket, context, exception)