]> 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:09:23 +0000 (14:09 -0400)
commitc4f28fb414c342ba362fdee8a68bd169f01aa7d2
tree09711543699fd5ae3c8bfed3ed5748e42b0ab2b8
parent29575552b04f4d4e4f7373a8ddcaa2572046029e
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
doc/build/changelog/unreleased_13/5599.rst [new file with mode: 0644]
lib/sqlalchemy/exc.py
test/engine/test_execute.py