h
This commit is contained in:
2
CLI.py
2
CLI.py
@@ -19,7 +19,7 @@ if not os.environ.get("MM_DEBUG"):
|
||||
db_path = Path(__file__).resolve().parent / "medios.db"
|
||||
if db_path.exists():
|
||||
import sqlite3
|
||||
with sqlite3.connect(str(db_path)) as conn:
|
||||
with sqlite3.connect(str(db_path), timeout=30.0) as conn:
|
||||
cur = conn.cursor()
|
||||
# Check for global debug key
|
||||
cur.execute("SELECT value FROM config WHERE key = 'debug' AND category = 'global'")
|
||||
|
||||
Reference in New Issue
Block a user