mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-10 09:08:40 +02:00
Improved messages.
This commit is contained in:
parent
125d182773
commit
867f1f80df
1 changed files with 4 additions and 2 deletions
|
@ -7,6 +7,8 @@ import sys
|
||||||
import urllib.request
|
import urllib.request
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
|
|
||||||
|
print("Running python script to upload to BackTrace")
|
||||||
|
|
||||||
post_headers = {}
|
post_headers = {}
|
||||||
post_headers['Content-Type'] = 'application/json'
|
post_headers['Content-Type'] = 'application/json'
|
||||||
post_headers['Expect'] = ''
|
post_headers['Expect'] = ''
|
||||||
|
@ -18,7 +20,7 @@ try:
|
||||||
except:
|
except:
|
||||||
print('file ' + sys.argv[2] + ' not found')
|
print('file ' + sys.argv[2] + ' not found')
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
post_request = urllib.request.Request(post_url, post_data, post_headers)
|
post_request = urllib.request.Request(post_url, post_data, post_headers)
|
||||||
except:
|
except:
|
||||||
|
@ -31,4 +33,4 @@ except:
|
||||||
print('urllib.request.urlopen failed')
|
print('urllib.request.urlopen failed')
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
print("No errors")
|
print("Upload to BackTrace completed without errors")
|
Loading…
Reference in a new issue