changeset 9a016cc21074 in /home/hg/repos/gajim

author: Yann Leboulanger <[email protected]>
branches: 
details:http://hg.gajim.org/gajim?cmd=changeset;node=9a016cc21074
description: fix exception order. Fixes #7969

diffstat:

 src/common/logger.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r 21538fec60da -r 9a016cc21074 src/common/logger.py
--- a/src/common/logger.py      Sun Feb 15 21:28:00 2015 +0100
+++ b/src/common/logger.py      Sun Feb 15 21:29:06 2015 +0100
@@ -415,10 +415,10 @@
                 message, subject) VALUES (?, ?, ?, ?, ?, ?, ?)'''
         try:
             self.cur.execute(sql, values)
+        except sqlite.OperationalError as e:
+            raise exceptions.PysqliteOperationalError(str(e))
         except sqlite.DatabaseError:
             raise exceptions.DatabaseMalformed
-        except sqlite.OperationalError as e:
-            raise exceptions.PysqliteOperationalError(str(e))
         message_id = None
         if write_unread:
             try:
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to