Skip to content

Commit

Permalink
Fix variable referenced before assignment
Browse files Browse the repository at this point in the history
Fixes #85
  • Loading branch information
miguelgrinberg committed Mar 22, 2017
1 parent 142e478 commit 5b9b17c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion socketio/asyncio_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ async def _trigger_event(self, event, namespace, *args):
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
Expand Down

0 comments on commit 5b9b17c

Please sign in to comment.