Browse Source

Fix variable referenced before assignment

Fixes #85
pull/91/head
Miguel Grinberg 8 years ago
parent
commit
5b9b17c4a0
  1. 2
      socketio/asyncio_server.py

2
socketio/asyncio_server.py

@ -313,7 +313,7 @@ class AsyncServer(server.Server):
try: try:
ret = await self.handlers[namespace][event](*args) ret = await self.handlers[namespace][event](*args)
except asyncio.CancelledError: # pragma: no cover except asyncio.CancelledError: # pragma: no cover
pass ret = None
else: else:
ret = self.handlers[namespace][event](*args) ret = self.handlers[namespace][event](*args)
return ret return ret

Loading…
Cancel
Save