From: Mike Bayer Date: Tue, 28 Feb 2006 02:36:09 +0000 (+0000) Subject: took out that "TypeError" wrapper since it blows away stack traces and confuses users X-Git-Tag: rel_0_1_3~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af46b2fc5c7bfcc97326ab2817a3fbe60c456e02;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git took out that "TypeError" wrapper since it blows away stack traces and confuses users --- diff --git a/lib/sqlalchemy/mapping/mapper.py b/lib/sqlalchemy/mapping/mapper.py index a7c56eb7d6..b4e3b84261 100644 --- a/lib/sqlalchemy/mapping/mapper.py +++ b/lib/sqlalchemy/mapping/mapper.py @@ -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'):