assert session has a pool set on error
authorsylvain.thenault@logilab.fr
Thu, 26 Feb 2009 13:12:21 +0100
changeset 973 da20ea051d6b
parent 972 1efba3fd1364
child 974 3ec0a7bd87ae
assert session has a pool set on error
server/sources/native.py
--- a/server/sources/native.py	Thu Feb 26 13:12:04 2009 +0100
+++ b/server/sources/native.py	Thu Feb 26 13:12:21 2009 +0100
@@ -451,6 +451,7 @@
         try:
             res = session.system_sql(sql).fetchone()
         except:
+            assert self.pool, 'session has no pool set'
             raise UnknownEid(eid)
         if res is None:
             raise UnknownEid(eid)