8000 [2.7] Fix error message in sqlite connection thread check. (GH-6028).… · python/cpython@924035a · GitHub
[go: up one dir, main page]

Skip to content

Commit 924035a

Browse files
[2.7] Fix error message in sqlite connection thread check. (GH-6028). (GH-6325)
(cherry picked from commit 030345c) Co-authored-by: Takuya Akiba <469803+iwiwi@users.noreply.github.com>
1 parent c498cd8 commit 924035a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_sqlite/connection.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,8 +1106,8 @@ int pysqlite_check_thread(pysqlite_Connection* self)
11061106
if (self->check_same_thread) {
11071107
if (PyThread_get_thread_ident() != self->thread_ident) {
11081108
PyErr_Format(pysqlite_ProgrammingError,
1109-
"SQLite objects created in a thread can only be used in that same thread."
1110-
"The object was created in thread id %ld and this is thread id %ld",
1109+
"SQLite objects created in a thread can only be used in that same thread. "
1110+
"The object was created in thread id %ld and this is thread id %ld.",
11111111
self->thread_ident, PyThread_get_thread_ident());
11121112
return 0;
11131113
}

0 commit comments

Comments
 (0)
0