Fix crash if no inputs are defined

This commit is contained in:
Adam Gausmann 2024-01-28 17:10:21 -06:00
parent 9d7a4b3821
commit cd6ece3490

View file

@ -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: