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

第19页代码勘误:《Django企业开发实战》2020年3月河北第6次印刷 #41

Open
MaoningGuan opened this issue Jun 8, 2020 · 0 comments

Comments

@MaoningGuan
Copy link

代码实验环境:
操作系统:Windows 10 专业版, 64bit
Python环境:anaconda 3, Python 3.7.6

书中代码:
if e.args[0] != errno.EAGAIN:

问题阐述:
经过实验验证,该exception返回的e.args[0] = 10035。

代码应修改为:
if e.args[0] != errno.EWOULDBLOCK:

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

No branches or pull requests

1 participant