[3.6] Fix error message in sqlite connection thread check. (GH-6028). (GH-6324)

https://github.com/python/cpython/commit/d918bbda4bb201c35d1ded3dde686d8b00a... commit: d918bbda4bb201c35d1ded3dde686d8b00a91851 branch: 3.6 author: Serhiy Storchaka <storchaka@gmail.com> committer: GitHub <noreply@github.com> date: 2018-04-01T01:03:50+03:00 summary: [3.6] Fix error message in sqlite connection thread check. (GH-6028). (GH-6324) (cherry picked from commit 030345c0bfc2f76684666fe5c61e766ba5debfe6) Co-authored-by: Takuya Akiba <469803+iwiwi@users.noreply.github.com> files: M Modules/_sqlite/connection.c diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c index 1c6aa54c224d..32cd306b3721 100644 --- a/Modules/_sqlite/connection.c +++ b/Modules/_sqlite/connection.c @@ -1125,8 +1125,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 %ld and this is thread id %ld", + "SQLite objects created in a thread can only be used in that same thread. " + "The object was created in thread id %ld and this is thread id %ld.", self->thread_ident, PyThread_get_thread_ident()); return 0; }
participants (1)
-
Serhiy Storchaka