terminal.py KeyError crash / fix

This commit is contained in:
Max 2021-12-07 20:40:27 -05:00
parent e40f2c53da
commit d9794b5123
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ class curses_terminal(threading.Thread):
self.stdscr.refresh()
elif msg['json_type'] == 'change_freq':
s = 'Frequency %f' % (msg['freq'] / 1000000.0)
if msg['fine_tune'] is not None:
if 'fine_tune' in msg and msg['fine_tune'] is not None:
s +='(%d)' % msg['fine_tune']
if msg['tgid'] is not None:
s += ' Talkgroup ID %s' % (msg['tgid'])