mirror of
https://github.com/laramies/theHarvester.git
synced 2024-11-10 17:13:07 +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
1 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,8 @@ def __init__(self, word) -> None:
|
||||||
async def do_search(self) -> None:
|
async def do_search(self) -> None:
|
||||||
subdomain_endpoint = f"https://osint.bevigil.com/api/{self.word}/subdomains/"
|
subdomain_endpoint = f"https://osint.bevigil.com/api/{self.word}/subdomains/"
|
||||||
url_endpoint = f"https://osint.bevigil.com/api/{self.word}/urls/"
|
url_endpoint = f"https://osint.bevigil.com/api/{self.word}/urls/"
|
||||||
|
if self.key is None:
|
||||||
|
self.key = ""
|
||||||
headers = {'X-Access-Token': self.key}
|
headers = {'X-Access-Token': self.key}
|
||||||
|
|
||||||
responses = await AsyncFetcher.fetch_all([subdomain_endpoint], json=True, proxy=self.proxy, headers=headers)
|
responses = await AsyncFetcher.fetch_all([subdomain_endpoint], json=True, proxy=self.proxy, headers=headers)
|
||||||
|
|
Loading…
Reference in a new issue