dbapi.py
branchstable
changeset 7815 2a164a9cf81c
parent 7665 0cd299c16f12
child 7876 df15d194a134
child 7879 9aae456abab5
--- a/dbapi.py	Tue Sep 20 15:14:04 2011 +0200
+++ b/dbapi.py	Wed Sep 21 17:38:00 2011 +0200
@@ -301,7 +301,7 @@
     def set_default_language(self, vreg):
         try:
             self.lang = vreg.property_value('ui.language')
-        except: # property may not be registered
+        except Exception: # property may not be registered
             self.lang = 'en'
         # use req.__ to translate a message without registering it to the catalog
         try:
@@ -532,7 +532,7 @@
         if self._closed is None and self._close_on_del:
             try:
                 self.close()
-            except:
+            except Exception:
                 pass
 
     # connection initialization methods ########################################