diff --git a/mozdownload/scraper.py b/mozdownload/scraper.py index a9ae5d2f..f73743b3 100755 --- a/mozdownload/scraper.py +++ b/mozdownload/scraper.py @@ -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') parser.entries.sort() date = ''.join(parser.entries[-1].split('-')[:6])