raise HTTPException(status_code=500, detail=f"domain='{domain}' is not wanted")
wildchar = "*." + ".".join(domain.split(".")[-domain.count("."):])
- punycode = domain.encode('idna').decode('utf-8')
+ punycode = domain.encode("idna").decode("utf-8")
elif mode == "reason":
reason = re.sub("(%|_)", "", tidyup.reason(value))
if len(reason) < 3: