Skip to content

Commit b4c7dba

Browse files
committed
Merge branch 'release/v1.0.2'
2 parents 87f0468 + e1df70c commit b4c7dba

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

get-platformio.py

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

pioinstaller/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import logging.config
1616

17-
VERSION = (1, 0, 1)
17+
VERSION = (1, 0, 2)
1818
__version__ = ".".join([str(s) for s in VERSION])
1919

2020
__title__ = "platformio-installer"

pioinstaller/core.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def _install_platformio_core(shutdown_piohome=True, develop=False, ignore_python
141141

142142

143143
def check(dev=False, auto_upgrade=False, version_spec=None):
144-
# pylint: disable=bad-option-value, import-outside-toplevel, unused-import, import-error, unused-variable, cyclic-import
144+
# pylint: disable=bad-option-value, import-outside-toplevel, unused-import, import-error, unused-variable, cyclic-import, too-many-branches
145145
from pioinstaller import penv
146146

147147
platformio_exe = os.path.join(
@@ -238,7 +238,11 @@ def check(dev=False, auto_upgrade=False, version_spec=None):
238238
if not last_piocore_version_check:
239239
return result
240240

241-
upgrade_core(platformio_exe, dev)
241+
# capture exception when Internet is off-line
242+
try:
243+
upgrade_core(platformio_exe, dev)
244+
except: # pylint:disable=bare-except
245+
return result
242246

243247
try:
244248
result.update(fetch_python_state(python_exe))

0 commit comments

Comments
 (0)