--- a/server/pool.py Fri Sep 23 09:17:37 2011 +0200
+++ b/server/pool.py Fri Sep 23 14:18:13 2011 +0200
@@ -73,7 +73,7 @@
# catch exceptions, rollback other sources anyway
try:
cnx.rollback()
- except:
+ except Exception:
source.critical('rollback error', exc_info=sys.exc_info())
# error on rollback, the connection is much probably in a really
# bad state. Replace it by a new one.
@@ -86,12 +86,12 @@
for cu in self._cursors.values():
try:
cu.close()
- except:
+ except Exception:
continue
for _, cnx in self.source_cnxs.values():
try:
cnx.close()
- except:
+ except Exception:
continue
# internals ###############################################################
@@ -135,7 +135,7 @@
try:
# properly close existing connection if any
self.source_cnxs[source.uri][1].close()
- except:
+ except Exception:
pass
source.info('trying to reconnect')
self.source_cnxs[source.uri] = (source, source.get_connection())