avoid KeyError when frappy is used with an invalid instrument

This commit is contained in:
2025-05-02 11:54:00 +02:00
parent dbd7a0433a
commit 09d7d016e1
2 changed files with 7 additions and 4 deletions

View File

@ -155,9 +155,9 @@ class ServiceManager:
if cmd.startswith('PY '):
cmd = env.get('PY', 'python3') + cmd[2:]
self.commands[ins] = cmd
self.info = result
if len(self.info) == 1:
self.single_ins = list(self.info)[0]
self.info = result
#def get_cmdpats(self, groups):
# return self.cmdpats