]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Raise and re-catch NameError from _ModNS
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 12 Feb 2022 15:50:45 +0000 (10:50 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 12 Feb 2022 18:59:13 +0000 (13:59 -0500)
commit30089288d4392e290979a8e8067366688c16fda1
treefd93603ea1716e1f79ad7fdd560cfff43b4a2e0c
parentd44839ca3a26a9980cad1b83f3529b4ea8908cec
Raise and re-catch NameError from _ModNS

Fixed issue where using a fully qualified path for the classname in
:func:`_orm.relationship` that nonetheless contained an incorrect name for
path tokens that were not the first token, would fail to raise an
informative error and would instead fail randomly at a later step.

Fixes: #7697
Change-Id: I5e1a3aa4c2a6ea5b123be14666f589aec43f4b60
(cherry picked from commit 260ade78a70d51378de9e7b9456bfe6218859b6c)
doc/build/changelog/unreleased_14/7697.rst [new file with mode: 0644]
lib/sqlalchemy/orm/clsregistry.py
test/orm/declarative/test_clsregistry.py