]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
hack tweak: exc.NO_STATE is a tuple.
authorJason Kirtland <jek@discorporate.us>
Mon, 18 Aug 2008 18:19:52 +0000 (18:19 +0000)
committerJason Kirtland <jek@discorporate.us>
Mon, 18 Aug 2008 18:19:52 +0000 (18:19 +0000)
lib/sqlalchemy/orm/util.py

index b9abd0b79a067dd90cdea466e447ce661b961e0b..7e244223b3a685bf7edd6d6cf8daf3e645527d89 100644 (file)
@@ -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: