fix: refuse an unknown mame or fbneo version

This commit is contained in:
Abdessamad Derraz committed 2026-10-06 09:42:33 +02:00
1 parent a848730a80
commit a70ff264d2
3 files changed
+39 -18

No files matched your search

+5 -2
View File
@@ -117,8 +117,11 @@ def _extract_version() -> tuple[str, str]:
if t["name"] != "latest" and t["name"].startswith("v"):
version = t["name"]
break
except (urllib.error.URLError, OSError):
pass
except (urllib.error.URLError, OSError) as exc:
raise RuntimeError(f"cannot determine the FBNeo version: {exc}") from exc
if version == "unknown":
# Written as core_version otherwise, and cached for a day.
raise RuntimeError("cannot determine the FBNeo version: no tag, resource.h or release")
sha_result = subprocess.run(
["git", "rev-parse", "HEAD"],