add try catch for yahoo

This commit is contained in:
Francesco Pavanello 2022-12-19 11:24:42 +01:00 committed by GitHub
parent b2344e480c
commit e7bd52a866
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
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: