Skip to content

Bulk asynchronous downloader for multiple file hosts

drop if exists

datawhoresf2cddac826d7
diff --git a/cyberdrop_dl/utils/database/tables/temp_referer_table.py b/cyberdrop_dl/utils/database/tables/temp_referer_table.py
index c28d08124..bf57baf61 100644
--- a/cyberdrop_dl/utils/database/tables/temp_referer_table.py
+++ b/cyberdrop_dl/utils/database/tables/temp_referer_table.py
@@ -35,7 +35,7 @@ class TempRefererTable:
async def sql_drop_temp_referers(self) -> None:
"""Delete temp_referers table"""
- await self.db_conn.execute("""DROP TABLE temp_referer;""")
+ await self.db_conn.execute("""DROP TABLE IF EXISTS temp_referer""")
await self.db_conn.commit()
async def check_referer(self, referer: URL) -> bool: