forked from platformio/platformio-core
Rename "InternetIsOffline" exception to "InternetConnectionError"
This commit is contained in:
1 parent
8835a03cd9
commit
4350c4ca48
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user