Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-10-18 13:21:42 +0200
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-10-18 13:21:42 +0200
commitdafe304b0060c2a189f19e11d8f0e755e3d0026c (patch)
tree73726c4252a7081ca930aa7c5265315b983b59b1
parent9c5d1e98916d41c3a8cb951dcec08217cddefbed (diff)
Added error handling to guided.py when not selecting a profile to install.
-rw-r--r--examples/guided.py2
1 files changed, 1 insertions, 1 deletions
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