Skip to content

Commit 4ef3c16

Browse files
authored
ssh: replaced nonexistent key with str(e) in error handling (#2512)
1 parent fb2ee19 commit 4ef3c16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pwnlib/tubes/ssh.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ def __init__(self, parent, host, port, *a, **kw):
450450
try:
451451
self.sock = parent.transport.open_channel('direct-tcpip', (host, port), ('127.0.0.1', 0))
452452
except Exception as e:
453-
self.exception(e.message)
453+
self.exception(str(e))
454454
raise
455455

456456
try:

0 commit comments

Comments
 (0)