server/sources/datafeed.py
changeset 9664 5ef5494b6b0b
parent 9543 39f981482e34
child 9665 887ad08e3a61
equal deleted inserted replaced
9663:f512d72a1dc4 9664:5ef5494b6b0b
   320         sourceparams['parser'] = self
   320         sourceparams['parser'] = self
   321         if isinstance(uri, unicode):
   321         if isinstance(uri, unicode):
   322             uri = uri.encode('utf-8')
   322             uri = uri.encode('utf-8')
   323         try:
   323         try:
   324             eid = session.repo.extid2eid(source, str(uri), etype, session,
   324             eid = session.repo.extid2eid(source, str(uri), etype, session,
   325                                          complete=False, commit=False,
   325                                          commit=False,
   326                                          sourceparams=sourceparams)
   326                                          sourceparams=sourceparams)
   327         except ValidationError as ex:
   327         except ValidationError as ex:
   328             # XXX use critical so they are seen during tests. Should consider
   328             # XXX use critical so they are seen during tests. Should consider
   329             # raise_on_error instead?
   329             # raise_on_error instead?
   330             self.source.critical('error while creating %s: %s', etype, ex)
   330             self.source.critical('error while creating %s: %s', etype, ex)