From fa3d84da81d2e6019ca1aa03f1604904e0e1d53a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Thu, 5 May 2022 01:22:59 +0200 Subject: [PATCH] fix: reduce noise in logs --- lookyloo/modules/phishtank.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lookyloo/modules/phishtank.py b/lookyloo/modules/phishtank.py index 497957e..0842976 100644 --- a/lookyloo/modules/phishtank.py +++ b/lookyloo/modules/phishtank.py @@ -109,7 +109,11 @@ class Phishtank(): urls = self.client.get_urls_by_ip(ip) if not urls: - ip_storage_dir.rmdir() + try: + ip_storage_dir.rmdir() + except OSError: + # no need to print an exception. + pass return to_dump = {'ip': ip, 'urls': urls} with pt_file.open('w') as _f: