]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
catch unexpected errors when accessing clslevel attribute
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 18 Mar 2022 14:33:40 +0000 (10:33 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 18 Mar 2022 14:34:25 +0000 (10:34 -0400)
commit764e36e5e7b7faf1a97b4b06be1ca307ac4fce46
treeadba2531d36e4f5f2f9d910fa3364def4c69624c
parentc2fe4a264003933ff895c51f5d07a8456ac86382
catch unexpected errors when accessing clslevel attribute

Improved the error message that's raised for the case where the
:func:`.association_proxy` construct attempts to access a target attribute
at the class level, and this access fails. The particular use case here is
when proxying to a hybrid attribute that does not include a working
class-level implementation.

Fixes: #7827
Change-Id: Ic6ff9df010f49253e664a1e7c7e16d8546006965
doc/build/changelog/unreleased_14/7827.rst [new file with mode: 0644]
lib/sqlalchemy/ext/associationproxy.py
test/ext/test_associationproxy.py