diff options
-rw-r--r-- | ogcp/views.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ogcp/views.py b/ogcp/views.py index ede1ed0..2f08c0f 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -2130,13 +2130,13 @@ def action_center_update(): params = request.args.to_dict() server = params.get('scope-server') center = params.get('scope-center') + if not center: + flash(_('Please, select one center'), category='error') + return redirect(url_for("scopes")) if not server: flash(_('Internal error: server was not sent as request argument'), category='error') return redirect(url_for("scopes")) - if not center: - flash(_('Please, select one center'), category='error') - return redirect(url_for("scopes")) server = get_server_from_ip_port(server) |