From af46b2fc5c7bfcc97326ab2817a3fbe60c456e02 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 28 Feb 2006 02:36:09 +0000 Subject: [PATCH] took out that "TypeError" wrapper since it blows away stack traces and confuses users --- lib/sqlalchemy/mapping/mapper.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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'): -- 2.47.2