Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorYash Tripathi <tripathiyash97@gmail.com>2021-05-21 01:58:32 +0530
committerDylan Taylor <dylan@dylanmtaylor.com>2021-05-20 18:59:22 -0400
commit7fefd55a0c716ef93f621d54d20f8d834cbc87ef (patch)
tree51a305cf389f429d892b32443cd5652de032e30a /examples
parentbc58ec047d0c2eb08e2b6178ac278c8fd889e3db (diff)
fallback added for when profile is null/empty
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 91dd1ddc..d23c483e 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -412,6 +412,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()