summaryrefslogtreecommitdiff
path: root/Modules/_sqlite/connection.c
diff options
context:
space:
mode:
authorTakuya Akiba <469803+iwiwi@users.noreply.github.com>2018-03-27 00:14:00 +0900
committerSerhiy Storchaka <storchaka@gmail.com>2018-03-26 18:14:00 +0300
commit030345c0bfc2f76684666fe5c61e766ba5debfe6 (patch)
treeca35689a74f31c38bf454ffb280dafd7b84ab161 /Modules/_sqlite/connection.c
parent7c2d97827fd2ccd72ab7a98427f87fcfe3891644 (diff)
downloadcpython-git-030345c0bfc2f76684666fe5c61e766ba5debfe6.tar.gz
Fix error message in sqlite connection thread check. (GH-6028)
Diffstat (limited to 'Modules/_sqlite/connection.c')
-rw-r--r--Modules/_sqlite/connection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c
index dc5061c1d9..6e0576151c 100644
--- a/Modules/_sqlite/connection.c
+++ b/Modules/_sqlite/connection.c
@@ -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;
}