Skip to content
Snippets Groups Projects
Commit 66fc744c authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix exception order. Fixes #7969

parent 83fbd944
No related branches found
No related tags found
No related merge requests found
...@@ -415,10 +415,10 @@ class Logger: ...@@ -415,10 +415,10 @@ class Logger:
message, subject) VALUES (?, ?, ?, ?, ?, ?, ?)''' message, subject) VALUES (?, ?, ?, ?, ?, ?, ?)'''
try: try:
self.cur.execute(sql, values) self.cur.execute(sql, values)
except sqlite.DatabaseError:
raise exceptions.DatabaseMalformed
except sqlite.OperationalError, e: except sqlite.OperationalError, e:
raise exceptions.PysqliteOperationalError(str(e)) raise exceptions.PysqliteOperationalError(str(e))
except sqlite.DatabaseError:
raise exceptions.DatabaseMalformed
message_id = None message_id = None
if write_unread: if write_unread:
try: try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment