fix: Exception when a URL is not in phishtank anymore

pull/860/head
Raphaël Vinot 2024-01-09 00:01:22 +01:00
parent d06da1aa52
commit 004a1f6d46
1 changed files with 5 additions and 1 deletions

View File

@ -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: