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

Skip to content

Commit 030345c

Browse files
iwiwiserhiy-storchaka
authored andcommitted
Fix error message in sqlite connection thread check. (GH-6028)
1 parent 7c2d978 commit 030345c

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
@@ -1103,8 +1103,8 @@ int pysqlite_check_thread(pysqlite_Connection* self)
11031103
if (self->check_same_thread) {
11041104
if (PyThread_get_thread_ident() != self->thread_ident) {
11051105
PyErr_Format(pysqlite_ProgrammingError,
1106-
"SQLite objects created in a thread can only be used in that same thread."
1107-
"The object was created in thread id %lu and this is thread id %lu",
1106+
"SQLite objects created in a thread can only be used in that same thread. "
1107+
"The object was created in thread id %lu and this is thread id %lu.",
11081108
self->thread_ident, PyThread_get_thread_ident());
11091109
return 0;
11101110
}

0 commit comments

Comments
 (0)
0