mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-20 08:37:50 -06:00
fix: name a sign-in page sent for the file list
This commit is contained in:
1 parent
f6de9a0ae3
commit
3389651549
5 files changed
+39
-12
No files matched your search
+13
-2
@@ -4056,9 +4056,20 @@ def fetch_manifest(plat: str) -> dict:
|
||||
try:
|
||||
return _validate_manifest(_fetch_json(url, MAX_MANIFEST_BYTES, "file list"), plat)
|
||||
except ValueError as exc:
|
||||
words = f"the file list is not valid: {exc}"
|
||||
if isinstance(exc.__cause__, (json.JSONDecodeError, UnicodeDecodeError)):
|
||||
# The parser's "Expecting value: line 1 column 1" told no one
|
||||
# anything, where the full screen names the usual cause.
|
||||
words = ("what arrived is not a file list: a Wi-Fi sign-in page or a cut "
|
||||
"download looks like this")
|
||||
EVENTS.emit("error", stage="manifest", reason="invalid", platform=plat,
|
||||
message=f"the file list is not valid: {exc}")
|
||||
print(f" The file list for {plat} is not valid: {exc}", file=sys.stderr)
|
||||
message=words)
|
||||
print(f" For {display_name(plat)}, {words}.", file=sys.stderr)
|
||||
if words.startswith("what arrived"):
|
||||
for line in _address_lines(url):
|
||||
print(line, file=sys.stderr)
|
||||
print(" Check the connection (sign in to the Wi-Fi if it asks), then run the "
|
||||
"same command again.", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
except urllib.error.HTTPError as exc:
|
||||
EVENTS.emit(
|
||||
|
||||
Reference in new issue
Block a user