1
0
mirror of https://github.com/mjg59/python-broadlink.git synced 2024-11-21 22:51:41 +01:00

Rename DNSError to DNSLookupError

This commit is contained in:
Felipe Martins Diel 2020-09-16 04:00:19 -03:00 committed by Matthew Garrett
parent 20d1d63fc3
commit 792f1a1c60

View File

@ -118,8 +118,8 @@ class LengthError(SDKException):
pass
class DNSError(SDKException):
"""Domain name resolution error."""
class DNSLookupError(SDKException):
"""Failed to obtain local IP address."""
pass
@ -153,7 +153,7 @@ BROADLINK_EXCEPTIONS = {
-4000: (NetworkTimeoutError, "Network timeout"),
-4007: (LengthError, "Received data packet length error"),
-4008: (ChecksumError, "Received data packet check error"),
-4013: (DNSError, "Domain name resolution error"),
-4013: (DNSLookupError, "Failed to obtain local IP address"),
}