Skip to content

Commit

Permalink
fix KeyError
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Apr 26, 2017
1 parent 5d432c7 commit 31e06d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_socketio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def loads(*args, **kwargs):

self.server_options['json'] = FlaskSafeJSON

resource = kwargs.pop('path', kwargs.pop('resource')) \
resource = kwargs.pop('path', None) or kwargs.pop('resource', None) \
or self.server_options.get('path', self.server_options.get(
'resource')) or 'socket.io'
if resource.startswith('/'):
Expand Down

0 comments on commit 31e06d4

Please sign in to comment.