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)