server/checkintegrity.py
branchstable
changeset 7815 2a164a9cf81c
parent 7687 4f5ab60e71cc
child 7896 4c954e1e73ef
--- a/server/checkintegrity.py	Tue Sep 20 15:14:04 2011 +0200
+++ b/server/checkintegrity.py	Wed Sep 21 17:38:00 2011 +0200
@@ -47,7 +47,7 @@
     sqlcursor.execute('SELECT type, source FROM entities WHERE eid=%s' % eid)
     try:
         etype, source = sqlcursor.fetchone()
-    except:
+    except Exception:
         eids[eid] = False
         return False
     if source and source != 'system':
@@ -58,7 +58,7 @@
                                {'x': eid}):
                 eids[eid] = True
                 return True
-        except: # TypeResolverError, Unauthorized...
+        except Exception: # TypeResolverError, Unauthorized...
             pass
         eids[eid] = False
         return False