Ajout d'un try/except'
This commit is contained in:
parent
5a0cc6011b
commit
be3770956c
@ -87,7 +87,11 @@ def api_print_sms():
|
||||
flash(e)
|
||||
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'))
|
||||
|
||||
@app.route('/api/print/image', methods=['POST'])
|
||||
|
Loading…
Reference in New Issue
Block a user