Mike Bayer  committed 1bf134e

took out that "TypeError" wrapper since it blows away stack traces and confuses users

  • Participants
  • Parent commits fecd3b4
  • Branches default

Comments (0)

Files changed (1)

File lib/sqlalchemy/mapping/

                     # constructor would otherwise bind it to whatever get_session() is.
                 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'):