fix: corrige tratamento de erro na listagem de cotas
This commit is contained in:
4
app.py
4
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"])
|
||||
|
||||
Reference in New Issue
Block a user