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')