]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
took out that "TypeError" wrapper since it blows away stack traces and confuses users
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 28 Feb 2006 02:36:09 +0000 (02:36 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 28 Feb 2006 02:36:09 +0000 (02:36 +0000)
lib/sqlalchemy/mapping/mapper.py

index a7c56eb7d6be93d39e6606aea2caefaf50fdd4aa..b4e3b8426171d6f6f20dc3fa9ec616c2ea64e447 100644 (file)
@@ -219,11 +219,7 @@ class Mapper(object):
                     # constructor would otherwise bind it to whatever get_session() is.
                     session.register_new(self)
                 if oldinit is not None:
-                    try:
-                        oldinit(self, *args, **kwargs)
-                    except TypeError, msg:
-                        # re-raise with the offending class name added to help in debugging
-                        raise TypeError, '%s.%s' %(self.__class__.__name__, msg)
+                    oldinit(self, *args, **kwargs)
             # override oldinit, insuring that its not already one of our
             # own modified inits
             if oldinit is None or not hasattr(oldinit, '_sa_mapper_init'):