mirror of https://github.com/CIRCL/lookyloo
fix: Exception when a URL is not in phishtank anymore
parent
d06da1aa52
commit
004a1f6d46
|
@ -144,7 +144,11 @@ class Phishtank(AbstractModule):
|
|||
|
||||
url_information = self.client.get_url_entry(url)
|
||||
if not url_information:
|
||||
url_storage_dir.rmdir()
|
||||
try:
|
||||
url_storage_dir.rmdir()
|
||||
except OSError:
|
||||
# no need to print an exception.
|
||||
pass
|
||||
return
|
||||
|
||||
with pt_file.open('w') as _f:
|
||||
|
|
Loading…
Reference in New Issue