From b9e2174fe9e3c2e4a7fc682a74d20f65fb4eb43d Mon Sep 17 00:00:00 2001 From: NissimHadar Date: Wed, 1 May 2019 10:10:28 -0700 Subject: [PATCH] Use exit(1) on errors --- hifi_backtrace_post.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hifi_backtrace_post.py b/hifi_backtrace_post.py index b55e72fde9..a6871ef535 100644 --- a/hifi_backtrace_post.py +++ b/hifi_backtrace_post.py @@ -19,18 +19,18 @@ try: post_data = open(sys.argv[2], 'rb') except: print('file ' + sys.argv[2] + ' not found') - exit() + exit(1) try: post_request = urllib.request.Request(post_url, post_data, post_headers) except: print('urllib.request.Request failed') - exit() + exit(1) try: post_response = urllib.request.urlopen(post_request) except: print('urllib.request.urlopen failed') - exit() + exit(1) print("Upload to BackTrace completed without errors") \ No newline at end of file