]> granicus.if.org Git - python/commitdiff
Fix error message in sqlite connection thread check. (GH-6028)
authorTakuya Akiba <469803+iwiwi@users.noreply.github.com>
Mon, 26 Mar 2018 15:14:00 +0000 (00:14 +0900)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 26 Mar 2018 15:14:00 +0000 (18:14 +0300)
Modules/_sqlite/connection.c

index dc5061c1d91da956e209cabbd5a547ea219f5cdc..6e0576151ccba2aef87304a5a19d1caa068a259e 100644 (file)
@@ -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;
         }