Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYash Tripathi <tripathiyash97@gmail.com>2021-05-21 01:58:32 +0530
committerYash Tripathi <tripathiyash97@gmail.com>2021-05-20 20:48:50 +0000
commit33f1957e4d10d212c87f0500107d426ff871131a (patch)
treefb53bb34f900db489326a5065219c93bdec381b6
parent028b2b938aed5315e91424f116ad50bf4aafc0c8 (diff)
fallback added for when profile is null/empty
-rw-r--r--examples/guided.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/guided.py b/examples/guided.py
index f53078db..c18e5039 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -408,6 +408,9 @@ else:
# Temporarily disabling keep_partitions if config file is loaded
archinstall.arguments['harddrive'].keep_partitions = False
# Temporary workaround to make Desktop Environments work
- archinstall.arguments['profile'] = archinstall.Profile(None, archinstall.arguments.get('profile', None))
+ if archinstall.arguments.get('profile', None) is not None:
+ archinstall.arguments['profile'] = archinstall.Profile(None, archinstall.arguments.get('profile', None))
+ else:
+ archinstall.arguments['profile'] = None
perform_installation_steps()