From 3da3acb2e10aedb356e66ac5226ce483de8e70c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Mon, 15 Jul 2013 19:42:50 -0300 Subject: [PATCH] =?UTF-8?q?Melhoria=20no=20registro=20de=20erros=20das=20p?= =?UTF-8?q?esquisas=20de=20data=20de=20=C3=BAltimo=20uso=20dos=20servi?= =?UTF-8?q?=C3=A7os=20SEIT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/servicos/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sigi/apps/servicos/models.py b/sigi/apps/servicos/models.py index 977681b..390d4dd 100644 --- a/sigi/apps/servicos/models.py +++ b/sigi/apps/servicos/models.py @@ -96,7 +96,7 @@ class Servico(models.Model): self.erro_atualizacao = "" self.save() except Exception as e: - reset(erro=e.message or e.msg) + reset(erro=str(e)) def __unicode__(self): return "%s (%s)" % (self.tipo_servico.nome, 'ativo' if self.data_desativacao is None else 'Desativado')