mirror of
https://github.com/craigerl/aprsd.git
synced 2025-07-30 20:32:27 -04: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
|
# Now read the ~/.aprds/config.yml
|
||||||
config = utils.get_config()
|
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:
|
try:
|
||||||
tn = telnetlib.Telnet(HOST, 14580)
|
tn = telnetlib.Telnet(HOST, 14580)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user