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.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user