index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | advaithm <advaith.madhukar@gmail.com> | 2021-05-12 15:45:45 +0530 |
---|---|---|
committer | advaithm <advaith.madhukar@gmail.com> | 2021-05-12 15:45:45 +0530 |
commit | 69d079e63a00caf9268575a6ca4789962776761b (patch) | |
tree | 36f37872628fad6fe31711b23412f6e6e215f5e0 /archinstall/lib/profiles.py | |
parent | f45f036b6557859649c9b3d670d89b578c01067f (diff) |
-rw-r--r-- | archinstall/lib/profiles.py | 5 |
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py index 06237c1c..1feba1cd 100644 --- a/archinstall/lib/profiles.py +++ b/archinstall/lib/profiles.py @@ -1,3 +1,4 @@ +from typing import Optional import os, urllib.request, urllib.parse, ssl, json, re import importlib.util, sys, glob, hashlib, logging from collections import OrderedDict @@ -49,7 +50,7 @@ def list_profiles(filter_irrelevant_macs=True, subpath='', filter_top_level_prof except urllib.error.HTTPError as err: print(f'Error: Listing profiles on URL "{profiles_url}" resulted in:', err) return cache - except: + except json.decoder.JSONDecodeError as err: print(f'Error: Could not decode "{profiles_url}" result as JSON:', err) return cache @@ -215,7 +216,7 @@ class Profile(Script): return True @property - def packages(self) -> list: + def packages(self) -> Optional[list]: """ Returns a list of packages baked into the profile definition. If no package definition has been done, .packages() will return None. |