Added try/catch for HTTPS POST.

This commit is contained in:
Anton Hvornum 2020-08-21 08:24:10 +00:00
parent 96e8cc4d5b
commit 63b92f6ea7
1 changed files with 4 additions and 1 deletions

View File

@ -38,4 +38,7 @@ with archinstall.Filesystem(harddrive, archinstall.GPT) as fs:
req = urllib.request.Request("https://archlinux.life/build/successful",
data=json.dumps(conditions).encode('utf8'),
headers={'content-type': 'application/json'})
urllib.request.urlopen(req, timeout=5)
try:
urllib.request.urlopen(req, timeout=5)
except:
pass