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:
rofl0r
2019-01-08 03:34:41 +00:00
parent 38d89f5bd9
commit fb917184b0

View File

@@ -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()