fix keyerror

This commit is contained in:
Lynne Megido 2019-09-10 22:03:56 +10:00
parent 2cbad2eff3
commit 57278a65ba

View File

@ -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'])