Raise RuntimeError, seems Github Actions didn't fail on exit code of negative 1

This commit is contained in:
Miguel Jacq 2025-04-01 16:15:17 +11:00
parent 42c050361b
commit 6041dcaf69
No known key found for this signature in database
GPG key ID: 59B3F0C24135C6A9

View file

@ -26,8 +26,7 @@ working_path = os.path.join(root_path, "build", "tor")
def get_latest_tor_version_urls(platform): def get_latest_tor_version_urls(platform):
r = requests.get(f"{torbrowser_latest_url}/download-{platform}.json") r = requests.get(f"{torbrowser_latest_url}/download-{platform}.json")
if r.status_code != 200: if r.status_code != 200:
print("Tor browser latest version url not working") raise RuntimeError("Tor browser latest version url not working")
sys.exit(-1)
platform_url = r.json()["binary"] platform_url = r.json()["binary"]
platform_sig_url = r.json()["sig"] platform_sig_url = r.json()["sig"]