Skip to content
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

修复函数get_czce_daily异常错误信息 #487

Merged
merged 1 commit into from
Oct 9, 2017

Conversation

byhankswang
Copy link
Contributor

错误信息如下:
/usr/bin/python2.7 /home/byhankswang/open-source-projects/tushare/test_unittest.py
Traceback (most recent call last):
File "/home/byhankswang/open-source-projects/tushare/test_unittest.py", line 64, in
df = dc.get_czce_daily(date="20170926", type="future")
File "/home/byhankswang/open-source-projects/tushare/tushare/futures/domestic.py", line 156, in get_czce_daily
if html.find(u'您的访问出错了') >= 0 or html.find('无期权每日行情交易记录') >= 0:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 0: ordinal not in range(128)

Process finished with exit code 1

错误信息如下:
/usr/bin/python2.7 /home/byhankswang/open-source-projects/tushare/test_unittest.py
Traceback (most recent call last):
  File "/home/byhankswang/open-source-projects/tushare/test_unittest.py", line 64, in <module>
    df = dc.get_czce_daily(date="20170926", type="future")
  File "/home/byhankswang/open-source-projects/tushare/tushare/futures/domestic.py", line 156, in get_czce_daily
    if html.find(u'您的访问出错了') >= 0 or html.find('无期权每日行情交易记录') >= 0:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 0: ordinal not in range(128)

Process finished with exit code 1
@byhankswang
Copy link
Contributor Author

修复函数get_czce_daily异常错误信息

@jimmysoa jimmysoa merged commit 87db129 into waditu:master Oct 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants