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>2021-04-08 08:17:40 +0200
committerGitHub <noreply@github.com>2021-04-08 08:17:40 +0200
commitcdf6fc796fc7d00b29c62c09e0788a74e05461a1 (patch)
treedc15ebfee13291104b76b787cfc0cfcfe436c914
parentf4233e73f0b70f236a9fd357ee11bf194224a4fb (diff)
Safety precaution by using .get instead of ["..."]
-rw-r--r--examples/guided.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 4c3cb58c..fa74fbba 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -341,7 +341,7 @@ def perform_installation(device, boot_partition, language, mirrors):
installation.enable_service('systemd-networkd')
installation.enable_service('systemd-resolved')
- if archinstall.arguments['audio'] != 'none':
+ if archinstall.arguments.get('audio', None) != None:
installation.log(f"The {archinstall.arguments.get('audio', None)} audio server will be used.", level=archinstall.LOG_LEVELS.Info)
if archinstall.arguments.get('audio', None) == 'pipewire':
print('Installing pipewire ...')