Commit 45f10077 authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

SQLite query may fail with IntegrityError having no message attribute

parent c0d80b64
......@@ -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:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment