-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
py3.6中报错:APIError(-1, url, 'json decode error, value={0!r}'.format(ret)) #3
Comments
I believe I'm facing the same issue. I'm running python 3.5. @mattzheng Any workaround to it?
|
hahahaha~ you could mask those lines:
|
I found an alternative by converting it into string and then into a dictionary:
|
@ShwetanshuSingh It may be better as follow: if self._api.decode_result:
try:
try:
ret = json.loads(ret, object_hook=ObjectDict)
except:
ret = json.loads(ast.literal_eval(str(ret)[1:]))
except:
raise APIError(-1, url, 'json decode error, value={0!r}'.format(ret)) |
我在py3.6中跑这句的时候,老是报错,就注释掉了。
The text was updated successfully, but these errors were encountered: