mirror of
https://github.com/Lynnesbian/FediBooks/
synced 2024-12-27 14:58:59 +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:
|
||||
# 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:
|
||||
|
|
Loading…
Reference in a new issue