Pythonism: use is not None instead of != None

This commit is contained in:
JayZed 2024-03-01 14:51:51 -05:00
parent 19efe411e5
commit 8ffab0a08e
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ class UnwantedWaitressMessageFilter(logging.Filter):
for i in range(0, listLength, 2):
if record.msg == unwantedMessages[i]:
exceptionTuple = record.exc_info
if exceptionTuple != None:
if exceptionTuple is not None:
if len(unwantedMessages[i+1]) == 0 or str(exceptionTuple[1]) in unwantedMessages[i+1]:
wanted = False
break