From cd6ece3490820048630e36be6ffbb915df6f945c Mon Sep 17 00:00:00 2001 From: Adam Gausmann Date: Sun, 28 Jan 2024 17:10:21 -0600 Subject: [PATCH] Fix crash if no inputs are defined --- install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.py b/install.py index a4d27eb..eb48295 100755 --- a/install.py +++ b/install.py @@ -93,7 +93,7 @@ def main(): host_config['name'] = args.hostname # Preprocess output configs for sway - for input in host_config['inputs']: + for input in host_config.get('inputs', []): # Generate config lines for sway template lines = [] for key in input: