server/sources/extlite.py
branchstable
changeset 8743 27a83746aebd
parent 8695 358d8bed9626
child 8900 010a59e12d89
--- a/server/sources/extlite.py	Tue Mar 19 16:56:46 2013 +0100
+++ b/server/sources/extlite.py	Wed Mar 20 17:40:25 2013 +0100
@@ -290,7 +290,7 @@
         try:
             # str(query) to avoid error if it's an unicode string
             cursor.execute(str(query), args)
-        except Exception, ex:
+        except Exception as ex:
             self.critical("sql: %r\n args: %s\ndbms message: %r",
                           query, args, ex.args[0])
             try: