fix: Make mypy happy

pull/86/head
Raphaël Vinot 2020-08-25 15:52:54 +02:00
parent c75b9e65fe
commit 4d6237aae5
1 changed files with 3 additions and 3 deletions

View File

@ -208,11 +208,11 @@ class Indexing():
hostnames = self.redis.smembers(f'bh|{urlnode.body_hash}|legitimate')
if hostnames:
if urlnode.hostname in hostnames:
return (True, hostnames)
return True, hostnames
else:
return (False, hostnames)
return False, hostnames
elif self.redis.sismember('bh|malicious', urlnode.body_hash):
return False
return False, None
return None