Skip to content

Commit

Permalink
return value from handler
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickjahns committed Apr 24, 2015
1 parent 3e0ae4e commit db6b8ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flask_socketio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,12 @@ def handle_my_custom_event(json):
def decorator(event_handler):
def func(*args, **kwargs):
try:
event_handler(*args, **kwargs)
return event_handler(*args, **kwargs)
except:
handler = self.exception_handlers.get(
namespace, self.default_exception_handler)
type, value, traceback = sys.exc_info()
handler(value)
return handler(value)
self._on_message(message, func, namespace)
return func
else:
Expand Down

0 comments on commit db6b8ab

Please sign in to comment.