Skip to content

Commit

Permalink
Merge pull request #25 from SomberNight/20190812_socks_exc
Browse files Browse the repository at this point in the history
SOCKSProxy: handle SOCKSError in _connect_one
  • Loading branch information
Neil committed Aug 12, 2019
2 parents 5de1922 + ff9cb10 commit 0decdff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiorpcx/socks.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ async def _connect_one(self, remote_address):
await self._handshake(client, sock, loop)
self.peername = sock.getpeername()
return sock
except (OSError, SOCKSProtocolError) as e:
except (OSError, SOCKSError) as e:
exception = e
# Don't close the socket because of an asyncio bug
# see https://github.com/kyuupichan/aiorpcX/issues/8
Expand Down

0 comments on commit 0decdff

Please sign in to comment.