From fb1f05d96b8ac75a0db873cf71e338bb618ae67c Mon Sep 17 00:00:00 2001 From: Lynne Date: Tue, 10 Sep 2019 16:21:00 +1000 Subject: [PATCH] redirect to the home page on invalid instance type --- webui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webui.py b/webui.py index e3ec6bb..112d9be 100644 --- a/webui.py +++ b/webui.py @@ -426,11 +426,11 @@ def bot_create(): else: # the user clicked next on step 2 while having an unsupported instance type - # take them back to step 1 + # take them back home del session['instance'] del session['instance_type'] session['step'] = 1 - return redirect(url_for("bot_create"), 303) + return redirect(url_for("home"), 303) else: if session['step'] == 4: