Skip to content

Commit

Permalink
Don't fail abruptly when we fail to download a report
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-c committed Sep 21, 2023
1 parent 6dbef8b commit e68a226
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend/code_coverage_backend/gcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,12 @@ def __init__(self, reports_dir=None):
# Load most recent reports in cache
for repo in REPOSITORIES:
for report in self.list_reports(repo, nb=1):
download_report(self.reports_dir, self.bucket, report.name)
try:
download_report(self.reports_dir, self.bucket, report.name)
except Exception as e:
logger.warn(
"Failure downloading report {}: {}".format(report.name, e)
)

def ingest_pushes(self, repository, platform, suite, min_push_id=None, nb_pages=3):
"""
Expand Down

0 comments on commit e68a226

Please sign in to comment.