[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [gettor/master] Make sure script output clearly prints out errors
commit 7496d1127d4713b57503ccab583be2397e757591
Author: Cecylia Bocovich <cohosh@xxxxxxxxxxxxxx>
Date: Thu Nov 21 16:19:40 2019 -0500
Make sure script output clearly prints out errors
---
scripts/update_files | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/update_files b/scripts/update_files
index 7da6836..ab45930 100755
--- a/scripts/update_files
+++ b/scripts/update_files
@@ -22,12 +22,12 @@ def upload_files(release):
for asset in data['downloads'][arch][locale]:
url = data['downloads'][arch][locale][asset]
filename = url.split('/')[-1]
- print("Downloading " + filename)
try:
subprocess.check_call(["/usr/bin/wget", "--quiet", url])
release.upload_asset(filename)
except:
print("Error: failed to download "+url)
+ print("Please upload this file manually.")
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits