]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Don't try to iterate chopped path if it's None
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 4 Jan 2018 21:58:55 +0000 (16:58 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 4 Jan 2018 21:59:36 +0000 (16:59 -0500)
commit127ead7452f326509cde38fcf7c9f38f69d9ae0a
tree1304c833e8936532f6e981592d5d829a858497dc
parent350671ff86070ca17c09dab7631221ac1eb33d65
Don't try to iterate chopped path if it's None

Fixed regression caused by new lazyload caching scheme in :ticket:`3954`
where a query that makes use of loader options with of_type would cause
lazy loads of unrelated paths to fail with a TypeError.

Change-Id: I705ea0ac012bcc3856ca04109454952cb07a2a8b
Fixes: #4153
doc/build/changelog/unreleased_12/4153.rst [new file with mode: 0644]
lib/sqlalchemy/orm/strategy_options.py
test/orm/test_options.py