Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise NotFoundError if no daily build can be found for latest build date #672

Merged
merged 6 commits into from
May 6, 2024
2 changes: 2 additions & 0 deletions mozdownload/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,8 @@ def get_latest_build_date(self):
months.entries[-1] + '/')
parser = self._create_directory_parser(url)
parser.entries = parser.filter(r'.*%s' % self.platform_regex)
if not parser.entries:
raise errors.NotSupportedError('Selected platform not available')
piri-p marked this conversation as resolved.
Show resolved Hide resolved
parser.entries.sort()

date = ''.join(parser.entries[-1].split('-')[:6])
Expand Down
Loading