mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-10 03:37:28 -03:00
Make get-tor.py fail hard on errors
This commit is contained in:
parent
c51430d6f7
commit
e506ccb27d
1 changed files with 2 additions and 2 deletions
|
@ -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]:
|
||||
|
|
Loading…
Reference in a new issue