]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Stringify correctly for non-str exception argument
authorAndrzej Bartosiński <neob91@gmail.com>
Sat, 19 Sep 2020 16:47:46 +0000 (12:47 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 20 Sep 2020 18:10:59 +0000 (14:10 -0400)
commitf0195150c2682c4fcd41f46ce073c59f6ec06347
tree5a207e9ab93bc55acb2530f0e34c1d896fb81477
parenta908d4e9af0593dd74e1c9ef7768cc546c68dbf3
Stringify correctly for non-str exception argument

Fixed issue where a non-string object sent to
:class:`_exc.SQLAlchemyError` or a subclass, as occurs with some third
party dialects, would fail to stringify correctly. Pull request
courtesy Andrzej Bartosiński.

Fixes: #5599
Closes: #5600
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5600
Pull-request-sha: cdccccc42a6ac8de771593a43ee8675bfd8dbeb6

Change-Id: Icd710d9015abc80f61a84893d75fbb33ee0fe46e
(cherry picked from commit c4f28fb414c342ba362fdee8a68bd169f01aa7d2)
doc/build/changelog/unreleased_13/5599.rst [new file with mode: 0644]
lib/sqlalchemy/exc.py
test/engine/test_execute.py