Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Commit

Permalink
fetch_listing by locale in lambda should retry on 404, fixes #424 (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Bengtsson authored May 3, 2018
1 parent eefcb83 commit b73e76d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jobs/buildhub/lambda_s3_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,14 @@ async def main(loop, event):
l10n_parent_url = re.sub('en-US/.+$', '', url)
l10n_folders, _ = await fetch_listing(
session,
l10n_parent_url
l10n_parent_url,
retry_on_notfound=True,
)
for locale in l10n_folders:
_, files = await fetch_listing(
session,
l10n_parent_url + locale
l10n_parent_url + locale,
retry_on_notfound=True,
)
for f in files:
rc_url = l10n_parent_url + locale + f['name']
Expand Down

0 comments on commit b73e76d

Please sign in to comment.