server/repository.py
changeset 7622 36126858405f
parent 7574 34154f48d255
parent 7616 8837e4733888
child 7698 1c7411535c2d
--- a/server/repository.py	Tue Jul 05 14:49:17 2011 +0200
+++ b/server/repository.py	Thu Jul 07 11:10:37 2011 +0200
@@ -742,7 +742,7 @@
                     args[0] = ex.entity
                     ex.args = tuple(args)
                 raise
-            except:
+            except Exception:
                 # FIXME: check error to catch internal errors
                 self.exception('unexpected error while executing %s with %s', rqlstring, args)
                 raise
@@ -1145,7 +1145,7 @@
                 try:
                     session.execute(rql, {'x': eid, 'seid': scleanup},
                                     build_descr=False)
-                except:
+                except Exception:
                     self.exception('error while cascading delete for entity %s '
                                    'from %s. RQL: %s', entity, sourceuri, rql)
         self.system_source.delete_info_multi(session, [entity], sourceuri)
@@ -1175,7 +1175,7 @@
                     rql += ', NOT (Y cw_source S, S eid %(seid)s)'
                 try:
                     session.execute(rql, {'seid': scleanup}, build_descr=False)
-                except:
+                except Exception:
                     self.exception('error while cascading delete for entity %s '
                                    'from %s. RQL: %s', entities, sourceuri, rql)
         self.system_source.delete_info_multi(session, entities, sourceuri)