From: Jason Kirtland Date: Mon, 18 Aug 2008 18:19:52 +0000 (+0000) Subject: hack tweak: exc.NO_STATE is a tuple. X-Git-Tag: rel_0_5rc1~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ba782841e4d10533632ba15822a4a12e22f2c7b;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git hack tweak: exc.NO_STATE is a tuple. --- diff --git a/lib/sqlalchemy/orm/util.py b/lib/sqlalchemy/orm/util.py index b9abd0b79a..7e244223b3 100644 --- a/lib/sqlalchemy/orm/util.py +++ b/lib/sqlalchemy/orm/util.py @@ -468,7 +468,7 @@ def class_mapper(class_, compile=True, raiseerror=True): # HACK until [ticket:1142] is complete if mapper is None: - raise exc.NO_STATE + raise AttributeError except exc.NO_STATE: if not raiseerror: