From 632d68d7dc8a7da709b9d282490b8da188d55c42 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 2 Jul 2026 16:45:25 -0400 Subject: [PATCH] Update frequency.py fix exception --- frequency.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/frequency.py b/frequency.py index 1cff02c9..f366d571 100644 --- a/frequency.py +++ b/frequency.py @@ -279,6 +279,7 @@ def update_doppler(): except: print("update_doppler failed") +try: tx_value = '0' rx_value = '0' sq = '0' @@ -337,10 +338,14 @@ def update_doppler(): # else: no_command = False print(no_command) - except: - if (debug_mode == 1): - print("Can't read sim.cfg file") + except Exception as e: + print(f"An error occurred: {e}") + if (debug_mode == 1): + print("Can't read sim.cfg file") file.close() + +except Exception as e: + print(f"An error occurred: {e}") if (doppler_mode == 'off'): tx_freq_hz = txf * 1000