Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/__init__.py
diff options
context:
space:
mode:
authorDylan Taylor <dylan@dylanmtaylor.com>2021-05-20 08:13:57 -0400
committerDylan Taylor <dylan@dylanmtaylor.com>2021-05-20 08:13:57 -0400
commit9c8d55dd76171909da27c90944ef9a686f6426cf (patch)
tree8da5e3a43fc4adf99c78a97a30cb548d02737929 /archinstall/__init__.py
parentf137bc4076ec7e4e0914be466ef403810ab02fca (diff)
parent86fd64ef8ae804ae26bd02f90dbb780a8151f439 (diff)
Merge branch 'master' into post-installation-scripts
Diffstat (limited to 'archinstall/__init__.py')
-rw-r--r--archinstall/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall/__init__.py b/archinstall/__init__.py
index 91e0cb12..ee4748f6 100644
--- a/archinstall/__init__.py
+++ b/archinstall/__init__.py
@@ -51,7 +51,7 @@ def initialize_arguments():
with open(args.config) as file:
config = json.load(file)
else: # Attempt to load the configuration from the URL.
- with urllib.request.urlopen(args.config) as response:
+ with urllib.request.urlopen(urllib.request.Request(args.config, headers={'User-Agent': 'ArchInstall'})) as response:
config = json.loads(response.read())
except Exception as e:
print(e)