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"])