mirror of https://github.com/n1nj4sec/pupy.git
Fix idna loading
This commit is contained in:
parent
743a20cc44
commit
c2e8db7a8b
|
@ -20,7 +20,7 @@ BATCH_FILENAME = ''.join(random.sample(string.ascii_letters, 10)) + '.bat'
|
|||
SMBSERVER_DIR = ''.join(random.sample(string.ascii_letters, 10))
|
||||
DUMMY_SHARE = 'TMP'
|
||||
|
||||
if not encodings._cache['idna']:
|
||||
if not 'idna' in encodings._cache or not encodings._cache['idna']:
|
||||
import encodings.idna
|
||||
encodings._cache['idna'] = encodings.idna.getregentry()
|
||||
|
||||
|
|
Loading…
Reference in New Issue