mirror of https://github.com/CIRCL/lookyloo
fix: reduce noise in logs
parent
adaddc591c
commit
fa3d84da81
|
@ -109,7 +109,11 @@ class Phishtank():
|
||||||
|
|
||||||
urls = self.client.get_urls_by_ip(ip)
|
urls = self.client.get_urls_by_ip(ip)
|
||||||
if not urls:
|
if not urls:
|
||||||
|
try:
|
||||||
ip_storage_dir.rmdir()
|
ip_storage_dir.rmdir()
|
||||||
|
except OSError:
|
||||||
|
# no need to print an exception.
|
||||||
|
pass
|
||||||
return
|
return
|
||||||
to_dump = {'ip': ip, 'urls': urls}
|
to_dump = {'ip': ip, 'urls': urls}
|
||||||
with pt_file.open('w') as _f:
|
with pt_file.open('w') as _f:
|
||||||
|
|
Loading…
Reference in New Issue