Ajout d'un try/except'

This commit is contained in:
n07070 2022-03-15 14:49:05 +01:00
parent 5a0cc6011b
commit be3770956c

View File

@ -87,7 +87,11 @@ def api_print_sms():
flash(e) flash(e)
redirect(url_for('index')) redirect(url_for('index'))
flash(web.print_sms(txt,sign)) try:
web.print_sms(txt,sign)
except Exception as e:
pass
return redirect(url_for('index')) return redirect(url_for('index'))
@app.route('/api/print/image', methods=['POST']) @app.route('/api/print/image', methods=['POST'])