mirror of
https://github.com/craigerl/aprsd.git
synced 2025-02-03 09:44:15 -05:00
added test to ensure shortcuts in config.yml
This patch adds a simple test to ensure that 'shortcuts' is part of the config.yml
This commit is contained in:
parent
e3964c5426
commit
8d1d2933e8
@ -109,7 +109,11 @@ else:
|
||||
|
||||
# Now read the ~/.aprds/config.yml
|
||||
config = utils.get_config()
|
||||
shortcuts = config['shortcuts']
|
||||
if 'shortcuts' in config:
|
||||
shortcuts = config['shortcuts']
|
||||
else:
|
||||
print("missing 'shortcuts' section of config.yml")
|
||||
sys.exit(-1)
|
||||
|
||||
try:
|
||||
tn = telnetlib.Telnet(HOST, 14580)
|
||||
|
Loading…
Reference in New Issue
Block a user