summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-11 14:20:01 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-24 10:26:52 (GMT)
commit45f10077d9b5ba55df5029a8c0a8566d5a8e1529 (patch)
tree1cd5c7cdccf48dbe84491a36f19b956a2731e7ae
parentc0d80b6453f1b8cc4f8ad54d7d82de043e99733e (diff)
SQLite query may fail with IntegrityError having no message attribute
-rw-r--r--src/query.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/query.py b/src/query.py
index e372298..ec0adfd 100644
--- a/src/query.py
+++ b/src/query.py
@@ -91,7 +91,7 @@ class DBCursor(sqlite3.Cursor):
self.failure = exc
msg = u'ERROR in %s: %s for %s' % (
self.connection.path,
- exc.message,
+ exc.message if hasattr(exc, 'message') else '',
self)
if mayFail:
if not failSilent: