aboutsummaryrefslogtreecommitdiffstats
path: root/termcast_server
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-10-16 13:20:11 -0400
committerJesse Luehrs <doy@tozt.net>2014-10-16 13:20:11 -0400
commitc3f0dd84b4937f2dea495733b1006a3862fd970e (patch)
tree76c7b7378a542c5d66568902e2ebd86b7850cb8c /termcast_server
parent89a35eb5d0806006d2e9f42c4a2358d7fd12e606 (diff)
downloadpython-termcast-server-c3f0dd84b4937f2dea495733b1006a3862fd970e.tar.gz
python-termcast-server-c3f0dd84b4937f2dea495733b1006a3862fd970e.zip
and make absolutely sure we handle everything
Diffstat (limited to 'termcast_server')
-rw-r--r--termcast_server/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/termcast_server/__init__.py b/termcast_server/__init__.py
index 47d7ba6..ca6adc0 100644
--- a/termcast_server/__init__.py
+++ b/termcast_server/__init__.py
@@ -78,7 +78,10 @@ class Server(object):
connection_id = uuid.uuid4().hex
connection = cb(client, connection_id)
self.publisher.subscribe(connection)
- connection.run()
+ try:
+ connection.run()
+ except Exception as e:
+ print('Running connection failed: ' + str(e))
self.publisher.unsubscribe(connection)
client.close()