Permalink
Browse files

Convert unicode websocket JSON message to string before decoding

  • Loading branch information...
1 parent 06f1cb2 commit 2204894221f4d2fc7ef53c91b2d753aa64ea8592 @mitotic committed Sep 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 graphterm/gtermserver.py
View
@@ -490,7 +490,7 @@ def on_message(self, message):
if controller or allow_feedback_only:
try:
- msg_list = json.loads(message)
+ msg_list = json.loads(str(message))
if allow_feedback_only:
msg_list = [msg for msg in msg_list if msg[0] == "feedback"]
except Exception, excp:

0 comments on commit 2204894

Please sign in to comment.