# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1238088082 -3600 # Node ID 52058e8a3af925b6166402b60e1a900db751a578 # Parent 936c311010fcdcbf10880a5b36f7f6408ce03591 somewhat handle corrupted database when manually building a database diff -r 936c311010fc -r 52058e8a3af9 server/session.py --- a/server/session.py Thu Mar 26 09:09:58 2009 +0100 +++ b/server/session.py Thu Mar 26 18:21:22 2009 +0100 @@ -444,10 +444,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