From c9d776ce233178cf5d92de23272498e1fc56eb19 Mon Sep 17 00:00:00 2001 From: Piriyakorn P Date: Sun, 28 Apr 2024 03:08:10 +0200 Subject: [PATCH] Add Fenix daily platform handling (#664) --- mozdownload/scraper.py | 2 ++ 1 file changed, 2 insertions(+) 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])