1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-11-25 16:48:58 +00:00

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: else:
# the user clicked next on step 2 while having an unsupported instance type # 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']
del session['instance_type'] del session['instance_type']
session['step'] = 1 session['step'] = 1
return redirect(url_for("bot_create"), 303) return redirect(url_for("home"), 303)
else: else:
if session['step'] == 4: if session['step'] == 4: