mirror of https://github.com/CIRCL/lookyloo
chg: If apikey is None in the modules, break immediately.
parent
045720d176
commit
a7ecaee8c4
|
@ -85,7 +85,7 @@ class SaneJavaScript():
|
||||||
class PhishingInitiative():
|
class PhishingInitiative():
|
||||||
|
|
||||||
def __init__(self, config: Dict[str, Any]):
|
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
|
self.available = False
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -158,7 +158,7 @@ class PhishingInitiative():
|
||||||
class VirusTotal():
|
class VirusTotal():
|
||||||
|
|
||||||
def __init__(self, config: Dict[str, Any]):
|
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
|
self.available = False
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue