From 57278a65ba27f87492b96863b855e99e71051df1 Mon Sep 17 00:00:00 2001 From: Lynne Date: Tue, 10 Sep 2019 22:03:56 +1000 Subject: [PATCH] fix keyerror --- webui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui.py b/webui.py index 08b005f..aff64ba 100644 --- a/webui.py +++ b/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'])