mirror of
https://github.com/laramies/theHarvester.git
synced 2024-09-20 15:26:31 +08:00
Fix the error "An exception has occurred: can only concatenate str (not "NoneType") to str" when the bevigil api lacks the key
This commit is contained in:
parent
7834c13694
commit
0947918c9b
|
@ -17,6 +17,8 @@ def __init__(self, word) -> None:
|
|||
async def do_search(self) -> None:
|
||||
subdomain_endpoint = f"https://osint.bevigil.com/api/{self.word}/subdomains/"
|
||||
url_endpoint = f"https://osint.bevigil.com/api/{self.word}/urls/"
|
||||
if self.key is None:
|
||||
self.key = ""
|
||||
headers = {'X-Access-Token': self.key}
|
||||
|
||||
responses = await AsyncFetcher.fetch_all([subdomain_endpoint], json=True, proxy=self.proxy, headers=headers)
|
||||
|
|
Loading…
Reference in a new issue