server/sources/datafeed.py
changeset 7950 99ae8c883ad3
parent 7934 2250a60a7653
child 7995 9a9f35ef418c
equal deleted inserted replaced
7949:ce64860b3cdc 7950:99ae8c883ad3
   295         try:
   295         try:
   296             eid = session.repo.extid2eid(source, str(uri), etype, session,
   296             eid = session.repo.extid2eid(source, str(uri), etype, session,
   297                                          complete=False, commit=False,
   297                                          complete=False, commit=False,
   298                                          sourceparams=sourceparams)
   298                                          sourceparams=sourceparams)
   299         except ValidationError, ex:
   299         except ValidationError, ex:
   300             self.source.error('error while creating %s: %s', etype, ex)
   300             # XXX use critical so they are seen during tests. Should consider
       
   301             # raise_on_error instead?
       
   302             self.source.critical('error while creating %s: %s', etype, ex)
   301             return None
   303             return None
   302         if eid < 0:
   304         if eid < 0:
   303             # entity has been moved away from its original source
   305             # entity has been moved away from its original source
   304             #
   306             #
   305             # Don't give etype to entity_from_eid so we get UnknownEid if the
   307             # Don't give etype to entity_from_eid so we get UnknownEid if the