From bbd4b2901c73ad70f8398e66e5c2318d0af0ac9e Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Thu, 1 Aug 2024 01:35:16 -0700 Subject: [PATCH] Update system.py --- modules/system.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/system.py b/modules/system.py index 35c7130..c2fa7a5 100644 --- a/modules/system.py +++ b/modules/system.py @@ -358,14 +358,14 @@ async def handleSignalWatcher(): # monitor rigctld for signal strength and frequency while True: msg = await signalWatcher() - if msg != ERROR_FETCHING_DATA and msg != None: + if msg != ERROR_FETCHING_DATA and msg is not None: print(f"{log_timestamp()} System: Detected Alert from Hamlib {msg}") # check we are not spammig the channel limit messages to once per minute if time.time() - lastHamLibAlert > 60: lastHamLibAlert = time.time() # if sigWatchBrodcastCh list contains multiple channels, broadcast to all - if type(sigWatchBrodcastCh) == list: + if type(sigWatchBrodcastCh) is list: for ch in sigWatchBrodcastCh: if antiSpam and ch != publicChannel: send_message(msg, int(ch), 0, 1)