We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0f5a60 commit b853413Copy full SHA for b853413
1 file changed
zeroconf/__init__.py
@@ -597,7 +597,7 @@ def __repr__(self) -> str:
597
socket.AF_INET6 if _is_v6_address(self.address) else socket.AF_INET, self.address
598
)
599
600
- except Exception: # pylint: disable=broad-except # TODO stop catching all Exceptions
+ except (ValueError, OSError):
601
return self.to_string(str(self.address))
602
603
0 commit comments