Increase database connection timeout when wiping
This commit is contained in:
parent
ff8bfd9523
commit
16ff6a51f5
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ def wipe_dbs(music=True):
|
||||||
if music:
|
if music:
|
||||||
kinds.append(v.DB_MUSIC_PATH)
|
kinds.append(v.DB_MUSIC_PATH)
|
||||||
for path in kinds:
|
for path in kinds:
|
||||||
conn = connect(path, timeout=5.0)
|
conn = connect(path, timeout=30.0)
|
||||||
cursor = conn.cursor()
|
cursor = conn.cursor()
|
||||||
cursor.execute("SELECT name FROM sqlite_master WHERE type = 'table'")
|
cursor.execute("SELECT name FROM sqlite_master WHERE type = 'table'")
|
||||||
tables = cursor.fetchall()
|
tables = cursor.fetchall()
|
||||||
|
|
Loading…
Reference in a new issue