Fixed urllib in offline mode.

Apparently, urrlib throws different errors on the "same" issue. With ambiguous names at that.
This commit is contained in:
Anton Hvornum 2018-05-13 23:22:00 +02:00 committed by GitHub
parent a584d33c2a
commit 51f7543b04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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