From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 26 Mar 2018 16:01:22 +0000 (-0700) Subject: Fix error message in sqlite connection thread check. (GH-6028) X-Git-Tag: v3.7.0b3~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=00765bb6ae692570c73fe15e0362ce9c8ec59c82;p=thirdparty%2FPython%2Fcpython.git Fix error message in sqlite connection thread check. (GH-6028) (cherry picked from commit 030345c0bfc2f76684666fe5c61e766ba5debfe6) Co-authored-by: Takuya Akiba <469803+iwiwi@users.noreply.github.com> --- diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c index dc5061c1d91d..6e0576151ccb 100644 --- a/Modules/_sqlite/connection.c +++ b/Modules/_sqlite/connection.c @@ -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; }