Skip to content

Commit

Permalink
Change empty reply error message (socks5)
Browse files Browse the repository at this point in the history
  • Loading branch information
romis2012 committed Sep 11, 2023
1 parent 425fd71 commit 0a3b245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python_socks/_protocols/socks5.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def validate(self):
@classmethod
def loads(cls, data: bytes) -> 'ConnectReply':
if not data:
raise ReplyError('Empty data')
raise ReplyError('Empty connect reply')

ver = data[0]
if ver != SOCKS_VER: # pragma: no cover
Expand Down

0 comments on commit 0a3b245

Please sign in to comment.