From 9c5d1e98916d41c3a8cb951dcec08217cddefbed Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 18 Oct 2020 13:20:58 +0200 Subject: Added error handling to guided.py when not selecting a profile to install. --- examples/guided.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/guided.py') diff --git a/examples/guided.py b/examples/guided.py index 83eeabe3..03874ada 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -24,7 +24,7 @@ def perform_installation(device, boot_partition, language, mirrors): if len(packages) and packages[0] != '': installation.add_additional_packages(packages) - if len(profile.strip()): + if profile and len(profile.strip()): installation.install_profile(profile) for user, password in users.items(): -- cgit v1.2.3-70-g09d2