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