diff options
Diffstat (limited to 'ogcp')
-rw-r--r-- | ogcp/views.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ogcp/views.py b/ogcp/views.py index c0d19ad..99e7fa1 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -390,7 +390,8 @@ def action_setup_modify(): r = g.server.post('/setup', payload=payload) if r.status_code == requests.codes.ok: return redirect(url_for('commands')) - return make_response("400 Bad Request", 400) + flash(_(f'Invalid setup form'), category='error') + return redirect(url_for('commands')) @app.route('/action/image/restore', methods=['GET', 'POST']) @login_required |