summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/main.py b/main.py
index 41799dae..ec404239 100644
--- a/main.py
+++ b/main.py
@@ -168,7 +168,7 @@ def _process_message(message):
response = request.process()
return (request, response)
-
+
except exceptions.AuthorizationTokenError as e:
response = rest.Response(401, 'Authorization error')
response.id = message['id']
@@ -188,6 +188,10 @@ def _process_message(message):
response.id = message['id']
traceback.print_exc()
- return ({'method': message['method'], 'path': message['path']}, response)
+ request = rest.Request()
+ request.method = message['method']
+ request.path = message['path']
+
+ return (request, response)
SOCKET_IO_CORE.run(FLASK_CORE_APP, host='0.0.0.0', port=8081)