From 09a2082226f71c627629c4def2089eb0005b9809 Mon Sep 17 00:00:00 2001 From: Piriyakorn P Date: Mon, 6 May 2024 14:19:24 +0200 Subject: [PATCH] Add meaningful, consistent error message for scrapers build number handling (#121) - use exact same error message --- mozdownload/scraper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mozdownload/scraper.py b/mozdownload/scraper.py index e2528753..fc6cc4e7 100755 --- a/mozdownload/scraper.py +++ b/mozdownload/scraper.py @@ -543,7 +543,7 @@ def get_build_info_for_date(self, date, build_index=None): break if build_index >= len(parser.entries): - raise errors.NotFoundError('Specified build number is not found ', url) + raise errors.NotFoundError('Specified build number has not been found ', url) self.logger.info('Selected build: %s' % parser.entries[build_index]) @@ -766,7 +766,7 @@ def get_build_info(self): self.build_index = 0 self.logger.info('Selected build: build%s' % self.build_number) else: - raise errors.NotFoundError('Specified build has not been found', url) + raise errors.NotFoundError('Specified build number has not been found ', url) @property def candidate_build_list_regex(self): @@ -990,7 +990,7 @@ def get_build_info_for_index(self, build_index=None): break if build_index >= len(parser.entries): - raise errors.NotFoundError('Specified build has not been found', url) + raise errors.NotFoundError('Specified build number has not been found ', url) self.logger.info('Selected build: %s' % parser.entries[build_index])