]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Ensure all SQLAlchemy exception can be properly pickled
authorFederico Caselli <cfederico87@gmail.com>
Mon, 27 Sep 2021 19:40:47 +0000 (15:40 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 1 Oct 2021 21:22:57 +0000 (17:22 -0400)
commit2f4abe24d2754e8d35f43e684e5fa303c1c8d15b
treec21cdae700aa9d936877ab59372c93de463e90e2
parent7f87cad26c1726565a200f85b7855bf8192e8df5
Ensure all SQLAlchemy exception can be properly pickled

Implemented proper ``__reduce__()`` methods for all SQLAlchemy exception
objects to ensure they all support clean round trips when pickling, as
exception objects are often serialized for the purposes of various
debugging tools.

Fixes  #7077
Closes: #7078
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/7078
Pull-request-sha: 8ba69f26532f0f60f679289702c9477e25149bf8

Change-Id: Id62f8d351cd9180c441ffa9201efcf5f1876bf83
doc/build/changelog/unreleased_14/7077.rst [new file with mode: 0644]
lib/sqlalchemy/exc.py
test/base/test_except.py