Rename "InternetIsOffline" exception to "InternetConnectionError"

This commit is contained in:
Ivan Kravets committed 2023-01-27 20:50:38 +02:00
1 parent 8835a03cd9
commit 4350c4ca48
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -37,7 +37,7 @@ class HTTPClientError(PlatformioException):
return self.message
class InternetIsOffline(UserSideException):
class InternetConnectionError(UserSideException):
MESSAGE = (
"You are not connected to the Internet.\n"
@@ -204,7 +204,7 @@ def _internet_on():
def ensure_internet_on(raise_exception=False):
result = _internet_on()
if raise_exception and not result:
raise InternetIsOffline()
raise InternetConnectionError()
return result