1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-11-25 08:38:59 +00:00

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) return redirect(url_for("home"), 303)
else: else:
if session['step'] == 4: if 'step' in session and session['step'] == 4:
try: try:
# test authentication # test authentication
client = Mastodon(client_id=session['client_id'], client_secret=session['client_secret'], api_base_url=session['instance']) client = Mastodon(client_id=session['client_id'], client_secret=session['client_secret'], api_base_url=session['instance'])