From ef3175bc41773ea2acd19e813d940b96a8c44cc0 Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Sun, 11 Mar 2007 21:06:22 +0000 Subject: [PATCH] otro fix por si el alumno no esta incripto todavia --- sercom/subcontrollers/misentregas/__init__.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sercom/subcontrollers/misentregas/__init__.py b/sercom/subcontrollers/misentregas/__init__.py index dfd3a05..8ea647f 100644 --- a/sercom/subcontrollers/misentregas/__init__.py +++ b/sercom/subcontrollers/misentregas/__init__.py @@ -125,8 +125,11 @@ class MisEntregasController(controllers.Controller, identity.SecureResource): """List records in model""" # Grupos en los que el usuario formo parte m = [i.grupo.id for i in Grupo.selectByAlumno(identity.current.user)] - entregador = AlumnoInscripto.selectByAlumno(identity.current.user) - m.append(entregador.id) + try: + entregador = AlumnoInscripto.selectByAlumno(identity.current.user) + m.append(entregador.id) + except: + pass r = cls.select(IN(cls.q.entregadorID, m)) return dict(records=r, name=name, namepl=namepl) -- 2.43.0