From 0f485c417f2e96fdf3aec7effe01b85af34236a4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20T=C3=A9tard?= Date: Tue, 24 Nov 2015 11:19:58 +0100 Subject: [PATCH] =?utf8?q?Retourner=20une=20erreur=20503=20si=20l=E2=80=99?= =?utf8?q?analyse=20du=20JSON=20ne=20marche=20pas?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- femtoblackweb.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/femtoblackweb.py b/femtoblackweb.py index 28b5f0b..399a5a8 100644 --- a/femtoblackweb.py +++ b/femtoblackweb.py @@ -133,5 +133,9 @@ def ajax_run_orders(): sock.send(bytes(json.dumps({'top': filename}), 'utf-8')) sock.close() + return jsonify(result='ok') + + abort(503) + if __name__ == "__main__": app.run(debug=True) -- 2.30.2