diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-03-31 22:03:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-31 22:03:50 (GMT) |
commit | d918bbda4bb201c35d1ded3dde686d8b00a91851 (patch) | |
tree | c268a7e17f0b5a6143d16b7711557f44c30127eb /Modules/_sqlite | |
parent | 25c869edd665cba7187910c5b151a0016fec4754 (diff) | |
download | cpython-d918bbda4bb201c35d1ded3dde686d8b00a91851.zip cpython-d918bbda4bb201c35d1ded3dde686d8b00a91851.tar.gz cpython-d918bbda4bb201c35d1ded3dde686d8b00a91851.tar.bz2 |
[3.6] Fix error message in sqlite connection thread check. (GH-6028). (GH-6324)
(cherry picked from commit 030345c0bfc2f76684666fe5c61e766ba5debfe6)
Co-authored-by: Takuya Akiba <469803+iwiwi@users.noreply.github.com>
Diffstat (limited to 'Modules/_sqlite')
-rw-r--r-- | Modules/_sqlite/connection.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c index 1c6aa54..32cd306 100644 --- a/Modules/_sqlite/connection.c +++ b/Modules/_sqlite/connection.c @@ -1125,8 +1125,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 %ld and this is thread id %ld", + "SQLite objects created in a thread can only be used in that same thread. " + "The object was created in thread id %ld and this is thread id %ld.", self->thread_ident, PyThread_get_thread_ident()); return 0; } |