Try to handle better exceptions in the chat server
This commit is contained in:
parent
ca3873f055
commit
93e6cd36a7
@ -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")
|
Loading…
Reference in New Issue
Block a user