From 63b92f6ea719c31c6c498e7f79ceabc0bce0b6a1 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Fri, 21 Aug 2020 08:24:10 +0000 Subject: Added try/catch for HTTPS POST. --- profiles/52-54-00-12-34-56.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'profiles/52-54-00-12-34-56.py') diff --git a/profiles/52-54-00-12-34-56.py b/profiles/52-54-00-12-34-56.py index 352c5f66..448b1c6d 100644 --- a/profiles/52-54-00-12-34-56.py +++ b/profiles/52-54-00-12-34-56.py @@ -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) \ No newline at end of file + try: + urllib.request.urlopen(req, timeout=5) + except: + pass \ No newline at end of file -- cgit v1.2.3-54-g00ecf