]> granicus.if.org Git - python/commitdiff
[3.6] Fix error message in sqlite connection thread check. (GH-6028). (GH-6324)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 31 Mar 2018 22:03:50 +0000 (01:03 +0300)
committerGitHub <noreply@github.com>
Sat, 31 Mar 2018 22:03:50 +0000 (01:03 +0300)
(cherry picked from commit 030345c0bfc2f76684666fe5c61e766ba5debfe6)

Co-authored-by: Takuya Akiba <469803+iwiwi@users.noreply.github.com>
Modules/_sqlite/connection.c

index 1c6aa54c224d36eff47aec3d91ec0e0875d7c1ca..32cd306b372103322f74ceb0a82fe2c31fbe328f 100644 (file)
@@ -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;
         }