diff --git a/datagather_modules/crawl_processor.py b/datagather_modules/crawl_processor.py index 7e0a165..9aa34f7 100644 --- a/datagather_modules/crawl_processor.py +++ b/datagather_modules/crawl_processor.py @@ -29,9 +29,9 @@ def whois_gather(short_domain): w['org'] = 'n/a' logging.info('WHOIS INFO GATHERING: OK') return w - except whois.parser.PywhoisError as e: + except Exception as e: print(Fore.RED + "Error while gathering WHOIS information. See journal for details") - logging.ERROR(f'WHOIS GATHERING: ERROR. REASON: {e}') + logging.error(f'WHOIS GATHERING: ERROR. REASON: {e}') pass def contact_mail_gather(url):