server/checkintegrity.py
branchstable
changeset 6185 229006accd26
parent 6132 440df442d705
child 6624 b30e5428048b
--- a/server/checkintegrity.py	Tue Sep 07 22:58:31 2010 +0200
+++ b/server/checkintegrity.py	Tue Sep 07 22:59:55 2010 +0200
@@ -240,7 +240,12 @@
                                 table, column, column, eid)
                             session.system_sql(sql)
             continue
-        cursor = session.system_sql('SELECT eid_from FROM %s_relation;' % rschema)
+        try:
+            cursor = session.system_sql('SELECT eid_from FROM %s_relation;' % rschema)
+        except Exception, ex:
+            # usually because table doesn't exist
+            print 'ERROR', ex
+            continue
         for row in cursor.fetchall():
             eid = row[0]
             if not has_eid(session, cursor, eid, eids):