diff options
author | Micah Lee <micah@micahflee.com> | 2022-10-09 16:16:29 -0700 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2022-10-09 16:16:29 -0700 |
commit | e506ccb27dee00ac206acdb95a23a11bb6f797c0 (patch) | |
tree | 2a3442dd5f7bfc5a01e6c5edbf51825c4bb4bb4b | |
parent | c51430d6f7ab179d5c64f6ab96f4390081168703 (diff) | |
download | onionshare-e506ccb27dee00ac206acdb95a23a11bb6f797c0.tar.gz onionshare-e506ccb27dee00ac206acdb95a23a11bb6f797c0.zip |
Make get-tor.py fail hard on errorsv2.6
-rw-r--r-- | desktop/scripts/get-tor.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/scripts/get-tor.py b/desktop/scripts/get-tor.py index 0f67fde8..f39558be 100644 --- a/desktop/scripts/get-tor.py +++ b/desktop/scripts/get-tor.py @@ -295,7 +295,7 @@ def update_tor_bridges(): print( f"There was a problem fetching the latest built-in bridges: status_code={r.status_code}" ) - return False + sys.exit(1) result = r.json() print(f"Built-in bridges: {result}") @@ -304,7 +304,7 @@ def update_tor_bridges(): print( f"There was a problem fetching the latest built-in bridges: errors={result['errors']}" ) - return False + sys.exit(1) for bridge_type in ["meek-azure", "obfs4", "snowflake"]: if bridge_type in result and result[bridge_type]: |