From d9794b51231287b74675c673c0cc1c3a458edc68 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 7 Dec 2021 20:40:27 -0500 Subject: [PATCH] terminal.py KeyError crash / fix --- op25/gr-op25_repeater/apps/terminal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op25/gr-op25_repeater/apps/terminal.py b/op25/gr-op25_repeater/apps/terminal.py index c732a3a..d54ff3f 100755 --- a/op25/gr-op25_repeater/apps/terminal.py +++ b/op25/gr-op25_repeater/apps/terminal.py @@ -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'])