阅读背景:

使用Flask时,处理python-social-auth异常的正确方法是什么?

来源:互联网 

I'm adding PSU to a Flask app and all is going pretty well so far, but I can't figure out how to handle the exceptions raised by PSU. One such exception is social.exceptions.AuthCanceled, raised when a user decides to cancel the auth process. I would obviously want to catch that and display some message.I'm adding PSU to a Flask app and all is going




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: