Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-11-29 20:20:47 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-11-29 20:20:47 +0000
commitd99b804386ae528439ba7d5cf7d4f4502c41c117 (patch)
tree0bf87778bdaa8447b4af37dea89470b0eff743fe
parent3563f00d877ec9a34ff17523d121401ee75ee758 (diff)
Added a bit more detail to HTTP errors.
-rw-r--r--archinstall/lib/profiles.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py
index 8a842cce..2cf96eb2 100644
--- a/archinstall/lib/profiles.py
+++ b/archinstall/lib/profiles.py
@@ -43,13 +43,14 @@ def list_profiles(filter_irrelevant_macs=True):
# Grab profiles from upstream URL
if storage['PROFILE_DB']:
+ profiles_url = os.path.join(storage["UPSTREAM_URL"], storage['PROFILE_DB'])
try:
- profile_list = json.loads(grab_url_data(os.path.join(storage["UPSTREAM_URL"], storage['PROFILE_DB'])))
+ profile_list = json.loads(grab_url_data(profiles_url))
except urllib.error.HTTPError as err:
- print(f'Error: Listing profiles on URL "{storage["UPSTREAM_URL"]}" resulted in:', err)
+ print(f'Error: Listing profiles on URL "{profiles_url}" resulted in:', err)
return cache
except:
- print(f'Error: Could not decode "{storage["UPSTREAM_URL"]}" result as JSON:', err)
+ print(f'Error: Could not decode "{profiles_url}" result as JSON:', err)
return cache
for profile in profile_list: