Erlend Egeberg Aasland <erlend.aasl...@innova.no> added the comment:

Exception originates from _pysqlite_seterror() in Modules/_sqlite/util.c, line 
64:
https://github.com/python/cpython/blob/master/Modules/_sqlite/util.c#L64

Error code 1 (SQLITE_ERROR, https://sqlite.org/rescode.html#error) is a generic 
sqlite3 error. Changing the default sqlite3 exception for this error code may 
not be what we want.

Anyway, we should clean up the error handling in the sqlite3 module. There are 
other inconsistencies apart from this.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42624>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to