hbprotoss/weii

禁止第三方应用授权时添加账号出错

Opened this issue · 1 comments

如果被添加的新浪账号禁止了第三方应用的授权,就会抛出如下出错信息,是否应该处理一下access_denied的情况?谢谢!

信息如下:
DEBUG - app.widget.setting_window: sina
DEBUG - app.widget.setting_window: https://api.weibo.com/oauth2/default.html?error_uri=/oauth2/authorize&error=access_denied&error_description=user denied your request.&error_code=21330
Traceback (most recent call last):
File "/Users/yuezhu/weii/app/easy_thread.py", line 28, in run
args = self.func(_self.args, *_self.kwargs)
File "/Users/yuezhu/weii/app/widget/setting_window.py", line 230, in retrieveData
f = opener.open(url, data)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 1656, in open
return getattr(self, name)(url, data)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 1864, in open_https
return self._open_generic_http(self._https_connection, url, data)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 1829, in _open_generic_http
response.status, response.reason, response.msg, data)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 1849, in http_error
return self.http_error_default(url, fp, errcode, errmsg, headers)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 1854, in http_error_default
raise HTTPError(url, errcode, errmsg, headers, None)
urllib.error.HTTPError: HTTP Error 400: Bad Request

Sorry,很早就切到了OS X,这个项目不再维护
万分抱歉