]> 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:58:59 +0000 (13:58 -0500)
commit260ade78a70d51378de9e7b9456bfe6218859b6c
treed3e3f7805144a4dad0a113f4729b4dcad2538ee9
parent46b2d7ae6d630260acf4de32906a0cabced78d1c
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
doc/build/changelog/unreleased_14/7697.rst [new file with mode: 0644]
lib/sqlalchemy/orm/clsregistry.py
test/orm/declarative/test_clsregistry.py