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

This commit is contained in:
Anton Hvornum 2020-10-18 13:25:13 +02:00
parent 4b1f22bf91
commit a69e1af4f1
1 changed files with 4 additions and 1 deletions

View File

@ -112,8 +112,11 @@ while 1:
while 1:
packages = [package for package in input('Additional packages aside from base (space separated): ').split(' ') if len(package)]
if not packages:
break
try:
if packages and archinstall.validate_package_list(packages):
if archinstall.validate_package_list(packages):
break
except archinstall.RequirementError as e:
print(e)