Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2018-05-13 23:22:00 +0200
committerGitHub <noreply@github.com>2018-05-13 23:22:00 +0200
commit51f7543b0498a84cfc10a7f5549da2e1594ae92e (patch)
treee860e54d0b0f0f23c0671511d592b8c80019684c /archinstall.py
parenta584d33c2a8bb2c1f44e3bdab28ff22141e01e10 (diff)
Fixed urllib in offline mode.
Apparently, urrlib throws different errors on the "same" issue. With ambiguous names at that.
Diffstat (limited to 'archinstall.py')
-rw-r--r--archinstall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall.py b/archinstall.py
index 9fa0d07e..2d8ad2c4 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -253,7 +253,7 @@ if __name__ == '__main__':
for mac in locmac:
try:
instructions = grab_url_data('https://raw.githubusercontent.com/Torxed/archinstall/net-deploy/deployments/{}.json'.format(mac))
- except urllib.error.HTTPError:
+ except (urllib.error.HTTPError, urllib.error.URLError) as e:
print('[N] No instructions for this box on this mac: {}'.format(mac))
continue