Increase database connection timeout when wiping

This commit is contained in:
croneter 2018-12-22 14:33:52 +01:00
parent ff8bfd9523
commit 16ff6a51f5

View file

@ -115,7 +115,7 @@ def wipe_dbs(music=True):
if music:
kinds.append(v.DB_MUSIC_PATH)
for path in kinds:
conn = connect(path, timeout=5.0)
conn = connect(path, timeout=30.0)
cursor = conn.cursor()
cursor.execute("SELECT name FROM sqlite_master WHERE type = 'table'")
tables = cursor.fetchall()