Skip to content

Commit d1021e7

Browse files
committed
Fix double exception on gaierror
Closes #2581
1 parent 932cc37 commit d1021e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pwnlib/tubes/remote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def __init__(self, host, port,
8686
except socket.gaierror as e:
8787
if e.errno != socket.EAI_NONAME:
8888
raise
89-
self.error('Could not resolve hostname: %r', host)
89+
self.exception('Could not resolve hostname: %r', host)
9090
if self.sock:
9191
self.settimeout(self.timeout)
9292
self.lhost, self.lport = self.sock.getsockname()[:2]

0 commit comments

Comments
 (0)