commit 0d4fc80177ac12810947f6cbdf4e4093d19f4600 Author: Cecylia Bocovich cohosh@torproject.org Date: Wed Nov 20 09:47:28 2019 -0500
Include upload function in try/catch block --- scripts/update_files | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/scripts/update_files b/scripts/update_files index 3fa35b2..7da6836 100755 --- a/scripts/update_files +++ b/scripts/update_files @@ -23,8 +23,12 @@ def upload_files(release): url = data['downloads'][arch][locale][asset] filename = url.split('/')[-1] print("Downloading " + filename) - subprocess.check_call(["/usr/bin/wget", url]) - release.upload_asset(filename) + try: + subprocess.check_call(["/usr/bin/wget", "--quiet", url]) + release.upload_asset(filename) + except: + print("Error: failed to download "+url) +
def main(token):