Skip to content

Commit edbfeb0

Browse files
committed
Remove last arg from .socket() call
1 parent 36821bd commit edbfeb0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

adafruit_requests.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,9 +424,7 @@ def _get_socket(self, host, port, proto, *, timeout=1):
424424
retry_count += 1
425425

426426
try:
427-
sock = self._socket_pool.socket(
428-
addr_info[0], addr_info[1], addr_info[2]
429-
)
427+
sock = self._socket_pool.socket(addr_info[0], addr_info[1])
430428
except OSError:
431429
continue
432430
except RuntimeError:

0 commit comments

Comments
 (0)