server/sources/native.py
changeset 7562 cdef82ca9eab
parent 7543 570522300e22
parent 7551 2d4ba5b984dc
child 7645 cb2459aaa7d7
--- a/server/sources/native.py	Thu Jun 23 07:41:25 2011 +0200
+++ b/server/sources/native.py	Mon Jun 27 15:30:52 2011 +0200
@@ -751,7 +751,7 @@
                     session.cnxset.connection(self.uri).rollback()
                     if self.repo.config.mode != 'test':
                         self.critical('transaction has been rollbacked')
-                except:
+                except Exception, ex:
                     pass
             if ex.__class__.__name__ == 'IntegrityError':
                 # need string comparison because of various backends
@@ -1627,7 +1627,7 @@
     * a list of rows (as tuples with one element per column)
 
     Tables are saved in chunks in different files in order to prevent
-    a too high memory consumption. 
+    a too high memory consumption.
     """
     def __init__(self, source):
         """