chg: If apikey is None in the modules, break immediately.

pull/92/head
Raphaël Vinot 2020-09-21 16:47:49 +02:00
parent 045720d176
commit a7ecaee8c4
1 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ class SaneJavaScript():
class PhishingInitiative():
def __init__(self, config: Dict[str, Any]):
if 'apikey' not in config:
if 'apikey' not in config or config['apikey'] is None:
self.available = False
return
@ -158,7 +158,7 @@ class PhishingInitiative():
class VirusTotal():
def __init__(self, config: Dict[str, Any]):
if 'apikey' not in config:
if 'apikey' not in config or config['apikey'] is None:
self.available = False
return