From 717028f00c9c1cdf9941505060c6b96696e1efda Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Tue, 9 May 2017 19:27:35 -0300 Subject: [PATCH] Fix unbounded variable --- sapl/sessao/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/sessao/views.py b/sapl/sessao/views.py index 899ed533e..1a78adaa4 100644 --- a/sapl/sessao/views.py +++ b/sapl/sessao/views.py @@ -2173,7 +2173,7 @@ class PautaSessaoDetailView(DetailView): if situacao is None: situacao = _("Não informada") rv = m.registrovotacao_set.all() - if resultado: + if rv: resultado = rv[0].tipo_resultado_votacao.nome resultado_observacao = rv[0].observacao else: