server/sources/pyrorql.py
branchstable
changeset 7884 35d2e2f4e10a
parent 7879 9aae456abab5
child 7885 9454b7ef5ae4
equal deleted inserted replaced
7883:cd98785b4a84 7884:35d2e2f4e10a
   284                     eid = self.repo.extid2eid(self, str(extid), etype, session,
   284                     eid = self.repo.extid2eid(self, str(extid), etype, session,
   285                                               insert=False)
   285                                               insert=False)
   286                     # entity has been deleted from external repository but is not known here
   286                     # entity has been deleted from external repository but is not known here
   287                     if eid is not None:
   287                     if eid is not None:
   288                         entity = session.entity_from_eid(eid, etype)
   288                         entity = session.entity_from_eid(eid, etype)
   289                         repo.delete_info(session, entity, self.uri, extid,
   289                         repo.delete_info(session, entity, self.uri,
   290                                          scleanup=self.eid)
   290                                          scleanup=self.eid)
   291                 except Exception:
   291                 except Exception:
   292                     self.exception('while updating %s with external id %s of source %s',
   292                     self.exception('while updating %s with external id %s of source %s',
   293                                    etype, extid, self.uri)
   293                                    etype, extid, self.uri)
   294                     continue
   294                     continue