src: type comparison fix

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan
2025-01-13 12:35:08 -05:00
parent 7e765b667c
commit 72ed175c52
2 changed files with 2 additions and 2 deletions

View File

@@ -324,7 +324,7 @@ class StripSerial(Strip):
try:
self.serial.open()
except (self.serial.error, OSError) as e:
if type(last_exc) != type(e) and last_exc.args != e.args:
if type(last_exc) is not type(e) and last_exc.args != e.args:
logging.exception("WLED Serial Open Error")
last_exc = e
await asyncio.sleep(2.)