projects
/
femtoblackweb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82fbf51
)
Retourner une erreur 503 si l’analyse du JSON ne marche pas
master
author
Olivier Tétard
<olivier.tetard@miskin.fr>
Tue, 24 Nov 2015 10:19:58 +0000
(11:19 +0100)
committer
Olivier Tétard
<olivier.tetard@miskin.fr>
Tue, 24 Nov 2015 10:19:58 +0000
(11:19 +0100)
femtoblackweb.py
patch
|
blob
|
history
diff --git
a/femtoblackweb.py
b/femtoblackweb.py
index
28b5f0b
..
399a5a8
100644
(file)
--- 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)