misc/cwdesklets/rqlsensor/__init__.py
branchstable
changeset 7815 2a164a9cf81c
parent 5424 8ecbcbff9777
child 7896 4c954e1e73ef
--- a/misc/cwdesklets/rqlsensor/__init__.py	Tue Sep 20 15:14:04 2011 +0200
+++ b/misc/cwdesklets/rqlsensor/__init__.py	Wed Sep 21 17:38:00 2011 +0200
@@ -15,9 +15,6 @@
 #
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
-"""
-
-"""
 import webbrowser
 reload(webbrowser)
 
@@ -89,7 +86,7 @@
         cursor = cnx.cursor()
         try:
             rset = cursor.execute(rql)
-        except:
+        except Exception:
             del self._v_cnx
             raise
         self._urls = []
@@ -101,7 +98,7 @@
             output.set('resultbg[%s]' % i, 'black')
             try:
                 self._urls.append(base % 'Any X WHERE X eid %s' % line[0])
-            except:
+            except Exception:
                 self._urls.append('')
             i += 1