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
committerDylan Taylor <dylan@dylanmtaylor.com>2021-04-09 11:47:47 -0400
commitcf1fd9e25797a73dd8787d741b1276bd5b86e743 (patch)
tree336a18443a39df7661623639aca09af9ac60e36a
parent45c321e327270f010daa42ad247c4c5ca67c1f16 (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 e136437e..18f2cc64 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -289,7 +289,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 ...')