From 93e6cd36a7bc79bad6dc97af008769c7ab9b066c Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Thu, 20 Dec 2018 16:58:29 -0600 Subject: [PATCH] Try to handle better exceptions in the chat server --- src/controller/longpollthread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller/longpollthread.py b/src/controller/longpollthread.py index 1c98d52..6162984 100644 --- a/src/controller/longpollthread.py +++ b/src/controller/longpollthread.py @@ -23,5 +23,5 @@ class worker(threading.Thread): pub.sendMessage("user-online", event=event) elif event.type == VkEventType.USER_OFFLINE: pub.sendMessage("user-offline", event=event) - except ReadTimeout, ConnectionError: + except: pub.sendMessage("longpoll-read-timeout") \ No newline at end of file