You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the following arguments from a non Android platform causes the code in DailyScraper to fail with an IndexError because there is no such build for such a platform.
mozdownload -a fenix -t daily -p mac
Traceback (most recent call last):
File "/Users/henrik/code/mozdownload/venv/bin/mozdownload", line 33, in <module>
sys.exit(load_entry_point('mozdownload', 'console_scripts', 'mozdownload')())
File "/Users/henrik/code/mozdownload/mozdownload/cli.py", line 169, in cli
build = factory.FactoryScraper(scraper_type, **kwargs)
File "/Users/henrik/code/mozdownload/mozdownload/factory.py", line 126, in __init__
scraper_types[scraper_type].__init__(self, **kwargs)
File "/Users/henrik/code/mozdownload/mozdownload/scraper.py", line 383, in __init__
Scraper.__init__(self, *args, **kwargs)
File "/Users/henrik/code/mozdownload/mozdownload/scraper.py", line 165, in __init__
self._retry_check_404(self.get_build_info)
File "/Users/henrik/code/mozdownload/mozdownload/scraper.py", line 180, in _retry_check_404
self._retry(func, **retry_kwargs)
File "/Users/henrik/code/mozdownload/mozdownload/scraper.py", line 171, in _retry
return redo.retry(func, **retry_kwargs)
File "/Users/henrik/code/mozdownload/venv/lib/python3.10/site-packages/redo-2.0.4-py3.10.egg/redo/__init__.py", line 170, in retry
return action(*args, **kwargs)
File "/Users/henrik/code/mozdownload/mozdownload/scraper.py", line 434, in get_build_info
self.date = self.get_latest_build_date()
File "/Users/henrik/code/mozdownload/mozdownload/scraper.py", line 456, in get_latest_build_date
date = ''.join(parser.entries[-1].split('-')[:6])
IndexError: list index out of range
The text was updated successfully, but these errors were encountered:
PR #672 fixed only one case but we should still check early when checking command line arguments if the given platform is supported by the application.
Using the following arguments from a non Android platform causes the code in DailyScraper to fail with an
IndexError
because there is no such build for such a platform.The text was updated successfully, but these errors were encountered: