diff --git a/lookyloo/helpers.py b/lookyloo/helpers.py index 84efb839..e0afc27c 100644 --- a/lookyloo/helpers.py +++ b/lookyloo/helpers.py @@ -139,7 +139,13 @@ def update_user_agents(): traceback.print_exc() return soup = BeautifulSoup(r.text, 'html.parser') - uas = soup.find_all('textarea')[1].text + + try: + uas = soup.find_all('textarea')[1].text + except Exception: + traceback.print_exc() + return + to_store = {'by_frequency': []} for ua in json.loads(uas): os = ua['system'].split(' ')[-1]