From 792f1a1c601469060fc3d46419818b13ff6ca36c Mon Sep 17 00:00:00 2001 From: Felipe Martins Diel Date: Wed, 16 Sep 2020 04:00:19 -0300 Subject: [PATCH] Rename DNSError to DNSLookupError --- broadlink/exceptions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/broadlink/exceptions.py b/broadlink/exceptions.py index 0b73e55..e00f7d8 100644 --- a/broadlink/exceptions.py +++ b/broadlink/exceptions.py @@ -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"), }