79284862

Date: 2024-12-16 13:51:06
Score: 1.5
Natty:
Report link

Thomas Wouters you're right .. fetchall() don't return a None .. it return a weird result when it finds no record that match the search criteria .. it return [(None,)] .. you can't test for this using the usual "if list is None" .. you must test for this weird result like this:

if list[0][0] == None .. (this will return True)

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ahmad Hasan