[issue32729] socket error handling needed

yang report at bugs.python.org
Sat Feb 3 03:02:54 EST 2018


yang <rkdls9 at naver.com> added the comment:

When timeout error occurred in urllib3.Poolmanager.urlopen(), the built-in TimeoutError raised which is not caught in existing timeout exception clause.

Thus, It is caught by 'error' except and it is not checking Nonetype so that raising IndexError

It patched that error and detailed in PR-5458

https://github.com/python/cpython/pull/5458

Thank you and sorry for not good at english.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32729>
_______________________________________


More information about the Python-bugs-list mailing list