redirect to the home page on invalid instance type

This commit is contained in:
Lynne Megido 2019-09-10 16:21:00 +10:00
parent 44c9cb0248
commit fb1f05d96b

View File

@ -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: