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:
parent
44c9cb0248
commit
fb1f05d96b
1 changed files with 2 additions and 2 deletions
4
webui.py
4
webui.py
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue