From 0741b4021cf06bbc8b201f887b5929705791121c Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Sun, 24 May 2020 00:13:29 -0700 Subject: [PATCH] Fix database exception --- plexpy/database.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plexpy/database.py b/plexpy/database.py index d2de6ef9..ee571167 100644 --- a/plexpy/database.py +++ b/plexpy/database.py @@ -359,6 +359,7 @@ class MonitorDatabase(object): break except sqlite3.OperationalError as e: + e = str(e) if "unable to open database file" in e or "database is locked" in e: logger.warn("Tautulli Database :: Database Error: %s", e) attempts += 1