1
0
mirror of https://github.com/mjg59/python-broadlink.git synced 2024-11-22 07:00:12 +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 pass
class DNSError(SDKException): class DNSLookupError(SDKException):
"""Domain name resolution error.""" """Failed to obtain local IP address."""
pass pass
@ -153,7 +153,7 @@ BROADLINK_EXCEPTIONS = {
-4000: (NetworkTimeoutError, "Network timeout"), -4000: (NetworkTimeoutError, "Network timeout"),
-4007: (LengthError, "Received data packet length error"), -4007: (LengthError, "Received data packet length error"),
-4008: (ChecksumError, "Received data packet check error"), -4008: (ChecksumError, "Received data packet check error"),
-4013: (DNSError, "Domain name resolution error"), -4013: (DNSLookupError, "Failed to obtain local IP address"),
} }