Commit 7496d112 authored by Cecylia Bocovich's avatar Cecylia Bocovich
Browse files

Make sure script output clearly prints out errors

parent f6ef9bbe
...@@ -22,12 +22,12 @@ def upload_files(release): ...@@ -22,12 +22,12 @@ def upload_files(release):
for asset in data['downloads'][arch][locale]: for asset in data['downloads'][arch][locale]:
url = data['downloads'][arch][locale][asset] url = data['downloads'][arch][locale][asset]
filename = url.split('/')[-1] filename = url.split('/')[-1]
print("Downloading " + filename)
try: try:
subprocess.check_call(["/usr/bin/wget", "--quiet", url]) subprocess.check_call(["/usr/bin/wget", "--quiet", url])
release.upload_asset(filename) release.upload_asset(filename)
except: except:
print("Error: failed to download "+url) print("Error: failed to download "+url)
print("Please upload this file manually.")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment