Skip to content

Commit e68a226

Browse files
committed
Don't fail abruptly when we fail to download a report
1 parent 6dbef8b commit e68a226

File tree

1 file changed

+6
-1
lines changed
  • backend/code_coverage_backend

1 file changed

+6
-1
lines changed

backend/code_coverage_backend/gcp.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,12 @@ def __init__(self, reports_dir=None):
8484
# Load most recent reports in cache
8585
for repo in REPOSITORIES:
8686
for report in self.list_reports(repo, nb=1):
87-
download_report(self.reports_dir, self.bucket, report.name)
87+
try:
88+
download_report(self.reports_dir, self.bucket, report.name)
89+
except Exception as e:
90+
logger.warn(
91+
"Failure downloading report {}: {}".format(report.name, e)
92+
)
8893

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

0 commit comments

Comments
 (0)