]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix TypeError for class_mapper called w/ iterable
authorKyle Stark <kyle@goodrx.com>
Mon, 13 Jan 2014 16:52:31 +0000 (08:52 -0800)
committerKyle Stark <kyle@goodrx.com>
Mon, 13 Jan 2014 16:52:31 +0000 (08:52 -0800)
commit58d3a4147361315fec2979e7bf933f4bd30ae46b
treeca934274c63d3a4f1c80233fb7e4b656573e3619
parent5d973d52aa7d1e5b715ffb99800642cc2af4d972
Fix TypeError for class_mapper called w/ iterable

When the class_ passed is not a mapped class but is actually an iterable, the string formatting operation fails with a TypeError, and the expected ArgumentError is not raised. Calling code which is using reflection and expects this error will fail (e.g. the sadisplay module).
lib/sqlalchemy/orm/base.py