handle errors in fix_one()

Change-Id: I1b999f3f20c69ae4a004e3e70b9cb63187f5b702
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-09-26 18:37:22 -04:00
parent 305b39fbc7
commit b43191241e
1 changed files with 5 additions and 1 deletions

View File

@ -249,7 +249,11 @@ class ToxFixMissingPy3(command.Command):
shutil.rmtree(os.path.join(team_dir, r))
continue
fix_one(team_dir, r, bad_envs)
try:
fix_one(team_dir, r, bad_envs)
except Exception:
LOG.exception('failed to update {}'.format(r))
continue
LOG.info('adding %s to %s', r, tracking_file)
with open(tracking_file, 'a', encoding='utf-8') as f: