handle unknown Zen Spamhaus results

This commit is contained in:
jesopo 2020-09-17 14:23:11 +00:00
parent 68939b7ee0
commit 5c1942a35a

View file

@ -19,6 +19,8 @@ class ZenSpamhaus(DNSBL):
desc = "spam" desc = "spam"
elif result in ["4", "5", "6", "7"]: elif result in ["4", "5", "6", "7"]:
desc = "exploits" desc = "exploits"
else:
desc = "unknown"
return f"{result} - {desc}" return f"{result} - {desc}"
class EFNetRBL(DNSBL): class EFNetRBL(DNSBL):