From f57568b4dc7cf09b16fc89c8b0607ade0a70dc0a Mon Sep 17 00:00:00 2001 From: b3yond Date: Sat, 14 Apr 2018 16:34:02 +0200 Subject: [PATCH] fixed config key error --- frontend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend.py b/frontend.py index 71a487d..fecb1df 100755 --- a/frontend.py +++ b/frontend.py @@ -102,8 +102,8 @@ def login_twitter(user): :return: redirect to twitter. """ try: - consumer_key = config["tapp"]["consumer_key"] - consumer_secret = config["tapp"]["consumer_secret"] + consumer_key = config["twitter"]["consumer_key"] + consumer_secret = config["twitter"]["consumer_secret"] callback_url = request.get_header('host') + "/login/twitter/callback" auth = tweepy.OAuthHandler(consumer_key, consumer_secret, callback_url) try: