server/sources/extlite.py
branchstable
changeset 7815 2a164a9cf81c
parent 7398 26695dd703d8
child 8695 358d8bed9626
equal deleted inserted replaced
7814:1ec9fe1dfba9 7815:2a164a9cf81c
     1 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     1 # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     3 #
     3 #
     4 # This file is part of CubicWeb.
     4 # This file is part of CubicWeb.
     5 #
     5 #
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
   294             self.critical("sql: %r\n args: %s\ndbms message: %r",
   294             self.critical("sql: %r\n args: %s\ndbms message: %r",
   295                           query, args, ex.args[0])
   295                           query, args, ex.args[0])
   296             try:
   296             try:
   297                 session.cnxset.connection(self.uri).rollback()
   297                 session.cnxset.connection(self.uri).rollback()
   298                 self.critical('transaction has been rollbacked')
   298                 self.critical('transaction has been rollbacked')
   299             except:
   299             except Exception:
   300                 pass
   300                 pass
   301             raise
   301             raise
   302         return cursor
   302         return cursor