From fb917184b0f32270fdca3c93381da1bea29357d7 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Tue, 8 Jan 2019 03:34:41 +0000 Subject: [PATCH] watchd: remove catch-it-all except statements it took considerable time to figure out why it suddenly stopped working due to a typo inside the try/except block. --- proxywatchd.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/proxywatchd.py b/proxywatchd.py index 280cb76..2756f12 100644 --- a/proxywatchd.py +++ b/proxywatchd.py @@ -66,7 +66,6 @@ class WorkerJob(): except KeyboardInterrupt as e: raise(e) - except: sock.disconnect() return None, None, None, None, None, fail_inc @@ -100,7 +99,7 @@ class WorkerJob(): _log('%s://%s;%s d: %.2f sec(s);%s srv: %s; recv: %s' % (proto, self.proxy, cstats, duration, torstats, srv, recvstats), 'xxxxx') except KeyboardInterrupt as e: raise e - except: + except rocksock.RocksockException as e: self.failcount += 1 finally: sock.disconnect()