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:
parent
6c6e78a1d7
commit
620dcdcd3f
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue