From 122c4ab29a7c77ce1a32f1b8b1c41ea49d3c9938 Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Tue, 27 Feb 2007 02:56:35 +0000 Subject: [PATCH] agrego return faltante --- sercom/subcontrollers/validate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sercom/subcontrollers/validate.py b/sercom/subcontrollers/validate.py index e527e6e..524f311 100644 --- a/sercom/subcontrollers/validate.py +++ b/sercom/subcontrollers/validate.py @@ -21,6 +21,7 @@ def validate_set(cls, name, id, data, url='../edit'): r = validate_get(cls, name, id) try: r.set(**data) + return r except DuplicateEntryError, e: flash(_(u'No se pudo modificar el %s porque no es único (error: %s).') % (name, e)) -- 2.43.0