From ba4a38b60433eb2c691920113b8605d47f3e41bc Mon Sep 17 00:00:00 2001 From: Ruud Date: Mon, 7 May 2012 20:52:03 +0200 Subject: [PATCH] Allow select error to ctrl+c app when not in develop mode --- CouchPotato.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CouchPotato.py b/CouchPotato.py index 6c3a8de..dd1e654 100755 --- a/CouchPotato.py +++ b/CouchPotato.py @@ -3,6 +3,7 @@ from logging import handlers from os.path import dirname import logging import os +import select import signal import socket import subprocess @@ -121,6 +122,8 @@ if __name__ == '__main__': l.run() except KeyboardInterrupt: pass + except select.error: + pass except SystemExit: raise except socket.error as (nr, msg):