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

Serhiy Storchaka webhook-mailer at python.org
Mon Mar 26 11:14:03 EDT 2018


https://github.com/python/cpython/commit/030345c0bfc2f76684666fe5c61e766ba5debfe6
commit: 030345c0bfc2f76684666fe5c61e766ba5debfe6
branch: master
author: Takuya Akiba <469803+iwiwi at users.noreply.github.com>
committer: Serhiy Storchaka <storchaka at gmail.com>
date: 2018-03-26T18:14:00+03:00
summary:

Fix error message in sqlite connection thread check. (GH-6028)

files:
M Modules/_sqlite/connection.c

diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c
index dc5061c1d91d..6e0576151ccb 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;
         }



More information about the Python-checkins mailing list