Skip to content

Commit

Permalink
Addressing CR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
renatav committed May 11, 2020
1 parent cb8179c commit 22469ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion taf/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __init__(
logging.INFO: taf_logger.info,
logging.WARNING: taf_logger.warning,
logging.ERROR: taf_logger.error,
logging.CRITICAL: taf_logger.critical
logging.CRITICAL: taf_logger.critical,
}

log_template = "{}{}"
Expand Down
8 changes: 4 additions & 4 deletions taf/repositoriesdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ def load_repositories(
repositories = _get_json_file(auth_repo, repositories_path, commit)
targets = _get_json_file(auth_repo, targets_path, commit)
except InvalidOrMissingMetadataError as e:
log_func = taf_logger.warning
if "targets/repositories.json not available at revision" in str(e):
log_func = taf_logger.debug
log_func("Skipping commit {} due to error: {}", commit, str(e))
continue
taf_logger.debug("Skipping commit {} due to: {}", commit, str(e))
continue
else:
raise

# target repositories are defined in both mirrors.json and targets.json
repositories = repositories["repositories"]
Expand Down

0 comments on commit 22469ca

Please sign in to comment.