From 0b1df4205b423e2a98521d9ae07bab2c242822bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Mon, 15 Jul 2013 19:33:06 -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 83c4718..977681b 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) + reset(erro=e.message or e.msg) def __unicode__(self): return "%s (%s)" % (self.tipo_servico.nome, 'ativo' if self.data_desativacao is None else 'Desativado')