From 86cda0b5747c356334877720dccb99fc9100f615 Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Tue, 27 Feb 2007 04:06:14 +0000 Subject: [PATCH] faltaba tirar un error --- sercom/subcontrollers/grupo/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sercom/subcontrollers/grupo/__init__.py b/sercom/subcontrollers/grupo/__init__.py index 8c5bdaa..628d1b7 100644 --- a/sercom/subcontrollers/grupo/__init__.py +++ b/sercom/subcontrollers/grupo/__init__.py @@ -192,6 +192,8 @@ class GrupoController(controllers.Controller, identity.SecureResource): alumno = AlumnoInscripto.select(AND(Curso.q.id==curso, Alumno.q.usuario==responsable)) if alumno.count() > 0: alumno = alumno[0] + else: + raise Exception except Exception, (inst): flash(_(u'El responsable %s no existe') % responsable) raise redirect('../list') -- 2.43.0