From 0a2d5c1d236fc0afd07f6a3435e3b915df1312c0 Mon Sep 17 00:00:00 2001 From: andersonid Date: Wed, 2 Apr 2025 18:31:57 -0300 Subject: [PATCH] fix: corrige tratamento de erro na listagem de cotas --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 703a524..d0c2a57 100644 --- a/app.py +++ b/app.py @@ -460,9 +460,9 @@ def listar_cotas(): return render_template("listar_cotas.html", cotas=cotas) except Exception as e: - app.logger.error(f"Erro ao listar cotas: {str(e)}") + print(f"Erro ao listar cotas: {str(e)}") flash("Erro ao carregar lista de cotas. Por favor, tente novamente.", "danger") - return redirect(url_for("home")) + return render_template("listar_cotas.html", cotas=[]) # Rota para criar um novo pagamento @app.route("/pagamentos/novo", methods=["GET", "POST"])