1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-23 00:54:31 +01:00

[socks] Remove a superfluous clause

This commit is contained in:
Yen Chi Hsuan 2016-05-08 15:14:56 +08:00
parent e21f17fc86
commit fa5cb8d021
No known key found for this signature in database
GPG Key ID: 3FDDD575826C5C30

View File

@ -210,8 +210,6 @@ class sockssocket(socket.socket):
if status != SOCKS5_USER_AUTH_SUCCESS: if status != SOCKS5_USER_AUTH_SUCCESS:
self.close() self.close()
raise Socks5Error(Socks5Error.ERR_GENERAL_FAILURE) raise Socks5Error(Socks5Error.ERR_GENERAL_FAILURE)
elif method == Socks5Auth.AUTH_NONE:
pass
def _setup_socks5(self, address): def _setup_socks5(self, address):
destaddr, port = address destaddr, port = address