Added error handling to guided.py when not selecting a profile to install.

This commit is contained in:
Anton Hvornum 2020-10-18 13:21:42 +02:00
parent 9c5d1e9891
commit dafe304b00
1 changed files with 1 additions and 1 deletions

View File

@ -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