equal
deleted
inserted
replaced
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) |