Skip to content

Commit

Permalink
Fix error message in sqlite connection thread check. (GH-6028)
Browse files Browse the repository at this point in the history
  • Loading branch information
iwiwi authored and serhiy-storchaka committed Mar 26, 2018
1 parent 7c2d978 commit 030345c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/_sqlite/connection.c
Expand Up @@ -1103,8 +1103,8 @@ int pysqlite_check_thread(pysqlite_Connection* self)
if (self->check_same_thread) {
if (PyThread_get_thread_ident() != self->thread_ident) {
PyErr_Format(pysqlite_ProgrammingError,
"SQLite objects created in a thread can only be used in that same thread."
"The object was created in thread id %lu and this is thread id %lu",
"SQLite objects created in a thread can only be used in that same thread. "
"The object was created in thread id %lu and this is thread id %lu.",
self->thread_ident, PyThread_get_thread_ident());
return 0;
}
Expand Down

0 comments on commit 030345c

Please sign in to comment.