remove rocksockexception block
This commit is contained in:
@@ -49,15 +49,6 @@ class WorkerJob():
|
|||||||
return sock, proto, duration, torhost, srv
|
return sock, proto, duration, torhost, srv
|
||||||
except KeyboardInterrupt as e:
|
except KeyboardInterrupt as e:
|
||||||
raise(e)
|
raise(e)
|
||||||
except rocksock.RocksockException as e:
|
|
||||||
## tor failed to connect
|
|
||||||
if e.get_failedproxy() == -1: break
|
|
||||||
## proxy refused connexion
|
|
||||||
elif int(e.error) in [12, 13, 20, 24]: break
|
|
||||||
## skip generic errors
|
|
||||||
#elif int(e.error) == 7: continue
|
|
||||||
## debug purpose
|
|
||||||
#print('proxy#: %s, errortype: %s, error: %s' % (e.failedproxy, e.errortype, e.error))
|
|
||||||
except: sock.disconnect()
|
except: sock.disconnect()
|
||||||
|
|
||||||
return None, None, None, None, None
|
return None, None, None, None, None
|
||||||
|
|||||||
Reference in New Issue
Block a user