index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-11-29 20:20:47 +0000 |
---|---|---|
committer | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-11-29 20:20:47 +0000 |
commit | d99b804386ae528439ba7d5cf7d4f4502c41c117 (patch) | |
tree | 0bf87778bdaa8447b4af37dea89470b0eff743fe /archinstall | |
parent | 3563f00d877ec9a34ff17523d121401ee75ee758 (diff) |
-rw-r--r-- | archinstall/lib/profiles.py | 7 |
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: |