Fix deprecated BaseException.message

This commit is contained in:
JonnyWong16 2016-08-04 23:34:11 -07:00
parent 669c23ea09
commit b69b722a37

View file

@ -146,7 +146,7 @@ class MonitorDatabase(object):
break
except sqlite3.OperationalError as e:
if "unable to open database file" in e.message or "database is locked" in e.message:
if "unable to open database file" in e or "database is locked" in e:
logger.warn(u"PlexPy Database :: Database Error: %s", e)
attempts += 1
time.sleep(1)