mirror of
https://github.com/moepman/acertmgr.git
synced 2024-12-29 10:31:49 +01:00
tools: Display warning about IDNA only if unicode names are in use
This commit is contained in:
parent
af0bb45d73
commit
0b8e49d6ee
@ -373,6 +373,6 @@ def idna_convert(domainlist):
|
|||||||
domaintranslation.append(result)
|
domaintranslation.append(result)
|
||||||
return domaintranslation
|
return domaintranslation
|
||||||
else:
|
else:
|
||||||
if 'idna' not in sys.modules:
|
if any(ord(c) >= 128 for c in ''.join(domainlist)) and 'idna' not in sys.modules:
|
||||||
log("Unicode domain(s) found but IDNA names could not be translated due to missing idna module", error=True)
|
log("Unicode domain(s) found but IDNA names could not be translated due to missing idna module", error=True)
|
||||||
return [(x, x) for x in domainlist]
|
return [(x, x) for x in domainlist]
|
||||||
|
Loading…
Reference in New Issue
Block a user