repo-mapper: make it more resilient to errors, it's better it executes and skip certain repositories, rather then crash whole mapper.

This commit is contained in:
Milka Kuzminski 2020-11-05 15:05:48 +01:00
parent 6c6e78a1d7
commit 620dcdcd3f

View file

@ -231,6 +231,10 @@ class ScmModel(BaseModel):
with_wire={"cache": False})
except OSError:
continue
except RepositoryError:
log.exception('Failed to create a repo')
continue
log.debug('found %s paths with repositories', len(repos))
return repos