From c3f0dd84b4937f2dea495733b1006a3862fd970e Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 16 Oct 2014 13:20:11 -0400 Subject: and make absolutely sure we handle everything --- termcast_server/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'termcast_server') 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() -- cgit v1.2.3-54-g00ecf