From 51f7543b0498a84cfc10a7f5549da2e1594ae92e Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 13 May 2018 23:22:00 +0200 Subject: Fixed urllib in offline mode. Apparently, urrlib throws different errors on the "same" issue. With ambiguous names at that. --- archinstall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archinstall.py') 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 -- cgit v1.2.3-70-g09d2