From 5b9b17c4a0654811aeda4184d159dafb5e0e4041 Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Tue, 21 Mar 2017 18:54:31 -0700 Subject: [PATCH] Fix variable referenced before assignment Fixes #85 --- socketio/asyncio_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/socketio/asyncio_server.py b/socketio/asyncio_server.py index 19d0f89..ea0699a 100644 --- a/socketio/asyncio_server.py +++ b/socketio/asyncio_server.py @@ -313,7 +313,7 @@ class AsyncServer(server.Server): try: ret = await self.handlers[namespace][event](*args) except asyncio.CancelledError: # pragma: no cover - pass + ret = None else: ret = self.handlers[namespace][event](*args) return ret