Skip to content

Commit d918bbd

Browse files
[3.6] Fix error message in sqlite connection thread check. (pythonGH-6028). (pythonGH-6324)
(cherry picked from commit 030345c) Co-authored-by: Takuya Akiba <469803+iwiwi@users.noreply.github.com>
1 parent 25c869e commit d918bbd

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
@@ -1125,8 +1125,8 @@ int pysqlite_check_thread(pysqlite_Connection* self)
11251125
if (self->check_same_thread) {
11261126
if (PyThread_get_thread_ident() != self->thread_ident) {
11271127
PyErr_Format(pysqlite_ProgrammingError,
1128-
"SQLite objects created in a thread can only be used in that same thread."
1129-
"The object was created in thread id %ld and this is thread id %ld",
1128+
"SQLite objects created in a thread can only be used in that same thread. "
1129+
"The object was created in thread id %ld and this is thread id %ld.",
11301130
self->thread_ident, PyThread_get_thread_ident());
11311131
return 0;
11321132
}

0 commit comments

Comments
 (0)