remove rocksockexception block

This commit is contained in:
mickael
2019-01-06 14:55:31 +00:00
parent 0a34833d3d
commit cff3e1304c

View File

@@ -49,15 +49,6 @@ class WorkerJob():
return sock, proto, duration, torhost, srv
except KeyboardInterrupt as 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()
return None, None, None, None, None