diff --git a/src/main.py b/src/main.py index a1d3c9b..595564b 100644 --- a/src/main.py +++ b/src/main.py @@ -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'])