server/session.py
branchtls-sprint
changeset 1263 01152fffd593
parent 1132 96752791c2b6
parent 1169 52058e8a3af9
child 1660 d1030dd9730b
--- a/server/session.py	Mon Apr 06 12:37:45 2009 +0200
+++ b/server/session.py	Tue Apr 07 09:30:23 2009 +0200
@@ -422,10 +422,14 @@
                     # None value inserted by an outer join, no type
                     row_descr[index] = None
                     continue
-                if isfinal:
-                    row_descr[index] = etype_from_pyobj(value)
-                else:
-                    row_descr[index] = etype_from_eid(value)[0]
+                try:
+                    if isfinal:
+                        row_descr[index] = etype_from_pyobj(value)
+                    else:
+                        row_descr[index] = etype_from_eid(value)[0]
+                except UnknownEid:
+                    self.critical('wrong eid in repository, should check database')
+                    row_descr[index] = row[index] = None
             description.append(tuple(row_descr))
         return description