mirror of
https://github.com/Lynnesbian/FediBooks/
synced 2024-11-25 08:38:59 +00:00
fix keyerror
This commit is contained in:
parent
2cbad2eff3
commit
57278a65ba
1 changed files with 1 additions and 1 deletions
2
webui.py
2
webui.py
|
@ -435,7 +435,7 @@ def bot_create():
|
|||
return redirect(url_for("home"), 303)
|
||||
|
||||
else:
|
||||
if session['step'] == 4:
|
||||
if 'step' in session and session['step'] == 4:
|
||||
try:
|
||||
# test authentication
|
||||
client = Mastodon(client_id=session['client_id'], client_secret=session['client_secret'], api_base_url=session['instance'])
|
||||
|
|
Loading…
Reference in a new issue