From 5cb3170254b23053efd473346ce5f26f6c0540e8 Mon Sep 17 00:00:00 2001 From: Steffen Hirtle Date: Wed, 22 Nov 2023 19:01:03 +0100 Subject: [PATCH] Fixed error occuring when GraXpert was started without internet connection --- graxpert/help_panel.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/graxpert/help_panel.py b/graxpert/help_panel.py index be703fe..aa96a19 100644 --- a/graxpert/help_panel.py +++ b/graxpert/help_panel.py @@ -326,7 +326,9 @@ def scaling_change(): remote_versions = list_remote_versions() local_versions = list_local_versions() ai_options = set([]) - ai_options.update([rv["version"] for rv in remote_versions]) + + if (remote_versions is not None): + ai_options.update([rv["version"] for rv in remote_versions]) ai_options.update(set([lv["version"] for lv in local_versions])) ai_options = sorted(ai_options, key=lambda k: version.parse(k), reverse=True)