]> git.mxchange.org Git - fba.git/blobdiff - daemon.py
Continued:
[fba.git] / daemon.py
index 60a1d2d5ebc33c890ff012271ae028732672bfa2..acc6cdff8d5a9aa96a0c3b0ae1e1f0277e33cc72 100755 (executable)
--- a/daemon.py
+++ b/daemon.py
@@ -122,7 +122,7 @@ def api_index(request: Request, mode: str, value: str, amount: int):
             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: