[issue38254] Pickle not deserializing an aiohttp ClientConnectorError exception as expected

David Parks report at bugs.python.org
Tue Sep 24 12:59:24 EDT 2019


David Parks <davidparks21 at gmail.com> added the comment:

An answer came in over the stack overflow question. 

https://stackoverflow.com/questions/58019939/attributeerror-str-object-has-no-attribute-errno/58084380#58084380

The issue is that OSError implements a custom __reduce__ function which needs to be override by the subclass when the arguments to the subclass are different than the parent. 

So no bug, just pickle subtlety. Passing it back to the aiohttp repo for a fix there.

https://github.com/aio-libs/aiohttp/issues/4077

----------
resolution:  -> not a bug
status: open -> closed

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


More information about the Python-bugs-list mailing list