Commit bcb8b642 by rfkelly0

convert_os_errors: handle ECONNRESET => RemoteConnectionError

parent 494d39d8
......@@ -260,6 +260,8 @@ def convert_os_errors(func):
raise RemoteConnectionError(opname,path=path,details=e),None,tb
if e.errno == errno.ENETDOWN:
raise RemoteConnectionError(opname,path=path,details=e),None,tb
if e.errno == errno.ECONNRESET:
raise RemoteConnectionError(opname,path=path,details=e),None,tb
if e.errno == errno.EACCES:
if sys.platform == "win32":
if e.args[0] and e.args[0] == 32:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment