From a69e1af4f1b13e0a47d4dc634c03b5bc383b9adc Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 18 Oct 2020 13:25:13 +0200 Subject: Added error handling to guided.py when not selecting a profile to install. --- examples/guided.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/guided.py b/examples/guided.py index aa5ec98d..30514a71 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -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) -- cgit v1.2.3-54-g00ecf