From 5c6e911896b8d35c06685948b6ea231516bfd4b3 Mon Sep 17 00:00:00 2001 From: Prinz23 Date: Sun, 22 Oct 2023 01:51:58 +0200 Subject: [PATCH] sqlite3.connect positional args are deprecated for more then 1 parameter and will be removed in 3.15 https://docs.python.org/dev/whatsnew/3.13.html#deprecated --- sickgear/db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sickgear/db.py b/sickgear/db.py index 6bdaf26e..070d0bbb 100644 --- a/sickgear/db.py +++ b/sickgear/db.py @@ -110,7 +110,7 @@ class DBConnection(object): helpers.copy_file(db_alt, db_src) self.filename = filename - self.connection = sqlite3.connect(db_src, 20) + self.connection = sqlite3.connect(db_src, timeout=20) if 'dict' == row_type: self.connection.row_factory = self._dict_factory @@ -150,7 +150,7 @@ class DBConnection(object): try: # copy into this DB - backup_con = sqlite3.connect(target_db, 20) + backup_con = sqlite3.connect(target_db, timeout=20) with backup_con: with db_lock: self.connection.backup(backup_con, progress=progress)