don't do except all -.- rather repair the fcking logging.
This commit is contained in:
parent
bf7c21c113
commit
4d556ec595
|
@ -101,7 +101,6 @@ def login_twitter(user):
|
||||||
Starts the twitter OAuth authentication process.
|
Starts the twitter OAuth authentication process.
|
||||||
:return: redirect to twitter.
|
:return: redirect to twitter.
|
||||||
"""
|
"""
|
||||||
try:
|
|
||||||
consumer_key = config["twitter"]["consumer_key"]
|
consumer_key = config["twitter"]["consumer_key"]
|
||||||
consumer_secret = config["twitter"]["consumer_secret"]
|
consumer_secret = config["twitter"]["consumer_secret"]
|
||||||
callback_url = url("login/twitter/callback")
|
callback_url = url("login/twitter/callback")
|
||||||
|
@ -114,8 +113,6 @@ def login_twitter(user):
|
||||||
return dict(error="Failed to get request token.")
|
return dict(error="Failed to get request token.")
|
||||||
user.save_request_token(auth.request_token)
|
user.save_request_token(auth.request_token)
|
||||||
return bottle.redirect(redirect_url)
|
return bottle.redirect(redirect_url)
|
||||||
except Exception:
|
|
||||||
logger.error("Error with Sign in with Twitter.", exc_info= True)
|
|
||||||
|
|
||||||
|
|
||||||
@get('/login/twitter/callback')
|
@get('/login/twitter/callback')
|
||||||
|
@ -174,3 +171,5 @@ bottle.install(SessionPlugin('/'))
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# testing only
|
# testing only
|
||||||
bottle.run(host='localhost', port=8080)
|
bottle.run(host='localhost', port=8080)
|
||||||
|
else:
|
||||||
|
application.catchall = False
|
||||||
|
|
Loading…
Reference in a new issue