cs50/python-cs50

decide how to handle INSERT OR IGNORE

Closed this issue · 1 comments

SQLite seems to return 0 when using INSERT OR IGNORE and there's an IntegrityError. Perhaps SQL.execute should return None in such cases instead of 0 for clarity.