Skip to content
Snippets Groups Projects
Commit d32e1ae0 authored by jimpp's avatar jimpp
Browse files

Fix another place where database could be malformed, using Asterix work in [9390]. Fixes #3342.

parent cc6eb923
No related branches found
No related tags found
No related merge requests found
......@@ -306,10 +306,11 @@ class Logger:
return 'weather'
def commit_to_db(self, values, write_unread = False):
#print 'saving', values
sql = 'INSERT INTO logs (jid_id, contact_name, time, kind, show, message, subject) VALUES (?, ?, ?, ?, ?, ?, ?)'
try:
self.cur.execute(sql, values)
except sqlite.DatabaseError:
raise exceptions.DatabaseMalformed
except sqlite.OperationalError, e:
raise exceptions.PysqliteOperationalError(str(e))
message_id = None
......
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