added SSLError handling to py2 sync #1897 #1944

[ci skip]
This tag has no release notes.