From dafe304b0060c2a189f19e11d8f0e755e3d0026c Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 18 Oct 2020 13:21:42 +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(-) diff --git a/examples/guided.py b/examples/guided.py index 03874ada..f0a9d46b 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -99,7 +99,7 @@ while 1: # Ask for archinstall-specific profiles (such as desktop environments etc) while 1: profile = archinstall.select_profile(archinstall.list_profiles()) - if type(profile) != str: # Got a imported profile + if profile and type(profile) != str: # Got a imported profile if not profile[1]._prep_function(): archinstall.log(' * Profile\'s preperation requirements was not fulfilled.', bg='black', fg='red') continue -- cgit v1.2.3-54-g00ecf