Fix crash if no inputs are defined
This commit is contained in:
parent
9d7a4b3821
commit
cd6ece3490
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue