mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-23 01:57:48 -06:00
release.latest no longer reads RETROBIOS_API at import: download.py checks it and passes the endpoint to get_latest_release. The release modules raise DownloadError and hand progress lines to a callback, so download.py reports every failure on stderr with exit code 1, the missing release included.
8 lines
228 B
Python
8 lines
228 B
Python
"""The error a release download stops on, worded for the user who reads it."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
class DownloadError(ValueError):
|
|
"""A release download that cannot go on: its message is printed as is."""
|