diff --git a/src/list.py b/src/list.py index ff2a90c..9dac0ee 100644 --- a/src/list.py +++ b/src/list.py @@ -10,7 +10,10 @@ def list_cmd(args): check_ground_libs_path() ground_libs_folder = os.getenv("GROUND_LIBS") - folders = os.listdir(ground_libs_folder) + + folders = [] + if os.path.isdir(ground_libs_folder): # used to prevent errors that are caused by the GROUND_LIBS folder not existing + folders = os.listdir(ground_libs_folder) table = Table("Name", "Version", "Description", title="Installed") config_parser = configparser.ConfigParser()