From 966717097e1e252b3045ff7ebf20823c5b9f0b73 Mon Sep 17 00:00:00 2001 From: eficas <> Date: Thu, 14 Aug 2003 16:05:07 +0000 Subject: [PATCH] =?utf8?q?PN=20ajout=20d'un=20traitement=20lors=20de=20la?= =?utf8?q?=20remont=C3=A9e=20d'exception=20TYPE-ERROR=20=20=20=20traitemen?= =?utf8?q?t=20de=20la=20fiche=20A02003-170?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Noyau/N_BLOC.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Noyau/N_BLOC.py b/Noyau/N_BLOC.py index f00a8b54..d92a7f41 100644 --- a/Noyau/N_BLOC.py +++ b/Noyau/N_BLOC.py @@ -137,6 +137,12 @@ class BLOC(N_ENTITE.ENTITE): l=traceback.format_exception(sys.exc_info()[0],sys.exc_info()[1],sys.exc_info()[2]) raise AsException("Catalogue entite : ", self.nom,", de pere : ", self.pere.nom, '\n',"Erreur dans la condition : ", self.condition,string.join(l)) + except TypeError: + # erreur 'normale' : un mot-clé est en fait un morceau de mot clef : TYPE_CHAM[0:2] par exemple + if CONTEXT.debug: + l=traceback.format_exception(sys.exc_info()[0],sys.exc_info()[1],sys.exc_info()[2]) + print "WARNING : Erreur a l'evaluation de la condition "+string.join(l) + return 0 except: l=traceback.format_exception(sys.exc_info()[0],sys.exc_info()[1],sys.exc_info()[2]) raise AsException("Catalogue entite : ", self.nom,", de pere : ", self.pere.nom, -- 2.39.2