[issue9510] sqlite3.Warning isnt a subclass of exceptions.Warning

Antoine Pitrou report at bugs.python.org
Wed Aug 4 17:20:54 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

On the other hand, the sqlite3 source code uses PyErr_Set*() rather than PyErr_Warn*(), so there's any point in trying to filter the warnings out (it won't work).

Looking at the kind of problems that it is meant to reflect, "Warning" is actually a misnomer, since they are genuine errors (PYSQLITE_TOO_MUCH_SQL, PYSQLITE_SQL_WRONG_TYPE) which you cannot simply ignore.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9510>
_______________________________________


More information about the Python-bugs-list mailing list