Skip to content

Bulk asynchronous downloader for multiple file hosts

Try statement for old history.

Jules-WinnfieldX4b2e7dafbe97
diff --git a/README.md b/README.md
index 6d7c890aa..d3a58ea24 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# `cyberdrop-dl`
**Bulk downloader for multiple file hosts**
-The latest version of the program is 4.0.9
+The latest version of the program is 4.0.11
Brand new and improved! Cyberdrop-DL now has an updated paint job, fantastic new look. On top of this it also downloads from different domains simultaneously.
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index 413c995c3..1e92209b0 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "4.0.9"
+__version__ = "4.0.11"
diff --git a/cyberdrop_dl/base_functions/sql_helper.py b/cyberdrop_dl/base_functions/sql_helper.py
index 9017746dd..7aaabf2ff 100644
--- a/cyberdrop_dl/base_functions/sql_helper.py
+++ b/cyberdrop_dl/base_functions/sql_helper.py
@@ -33,8 +33,12 @@ class SQLHelper:
async def check_old_history(self):
"""Checks whether V3 history exists"""
- self.curs.execute("""SELECT name FROM sqlite_schema WHERE type='table' AND name='downloads'""")
- sql_file_check = self.curs.fetchone()
+ try:
+ self.curs.execute("""SELECT name FROM sqlite_schema WHERE type='table' AND name='downloads'""")
+ sql_file_check = self.curs.fetchone()
+ except Exception as e:
+ self.curs.execute("""SELECT name FROM sqlite_master WHERE type='table' AND name='downloads'""")
+ sql_file_check = self.curs.fetchone()
if sql_file_check:
self.old_history = True