Skip to content

Commit

Permalink
New exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Mar 12, 2019
1 parent 2701eb9 commit 1c09421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pushi/net/server.py
Expand Up @@ -126,7 +126,7 @@ def on_data_ws(self, connection, data):
try:
data = data.decode("utf-8")
json_d = json.loads(data)
except:
except Exception:
raise netius.DataError("Invalid message received '%s'" % data)

event = json_d.get("event", None)
Expand Down

0 comments on commit 1c09421

Please sign in to comment.