mirror of
https://github.com/laramies/theHarvester.git
synced 2024-09-20 23:37:00 +08:00
add try catch for yahoo
This commit is contained in:
parent
b2344e480c
commit
e7bd52a866
|
@ -427,8 +427,11 @@ async def store(search_engine: Any, source: str, process_param: Any = None, stor
|
|||
|
||||
elif engineitem == 'yahoo':
|
||||
from theHarvester.discovery import yahoosearch
|
||||
yahoo_search = yahoosearch.SearchYahoo(word, limit)
|
||||
stor_lst.append(store(yahoo_search, engineitem, store_host=True, store_emails=True))
|
||||
try:
|
||||
yahoo_search = yahoosearch.SearchYahoo(word, limit)
|
||||
stor_lst.append(store(yahoo_search, engineitem, store_host=True, store_emails=True))
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
||||
elif engineitem == 'zoomeye':
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue