Fixed urllib in offline mode.
Apparently, urrlib throws different errors on the "same" issue. With ambiguous names at that.
This commit is contained in:
parent
a584d33c2a
commit
51f7543b04
|
|
@ -253,7 +253,7 @@ if __name__ == '__main__':
|
||||||
for mac in locmac:
|
for mac in locmac:
|
||||||
try:
|
try:
|
||||||
instructions = grab_url_data('https://raw.githubusercontent.com/Torxed/archinstall/net-deploy/deployments/{}.json'.format(mac))
|
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))
|
print('[N] No instructions for this box on this mac: {}'.format(mac))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue