Skip to content

Narrow exception catch in DNSAddress.__repr__ to only expected exceptions#473

Merged
bdraco merged 1 commit into
python-zeroconf:masterfrom
bdraco:dnsaddress_broad_except
Jun 6, 2021
Merged

Narrow exception catch in DNSAddress.__repr__ to only expected exceptions#473
bdraco merged 1 commit into
python-zeroconf:masterfrom
bdraco:dnsaddress_broad_except

Conversation

@bdraco

@bdraco bdraco commented Jun 6, 2021

Copy link
Copy Markdown
Member
  • If the bytes object packed_ip is not the correct length for the
    specified address family, ValueError will be raised.
    OSError is raised for errors from the call to inet_ntop()

…ions

- If the bytes object packed_ip is not the correct length for the
  specified address family, ValueError will be raised.
  OSError is raised for errors from the call to inet_ntop()
@bdraco bdraco merged commit b853413 into python-zeroconf:master Jun 6, 2021
@bdraco bdraco deleted the dnsaddress_broad_except branch June 6, 2021 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant