We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d064a90 commit 0b020b8Copy full SHA for 0b020b8
pytcp/socket/raw__socket.py
@@ -87,6 +87,10 @@ def __init__(
87
case AddressFamily.INET4:
88
self._local_ip_address = Ip4Address()
89
self._remote_ip_address = Ip4Address()
90
+ case _:
91
+ raise ValueError(
92
+ f"Invalid address family: {self._address_family}"
93
+ )
94
95
self._local_port = int(ip_proto)
96
self._remote_port = 0
0 commit comments