Skip to content

Commit

Permalink
Merge branch 'release/v1.0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Apr 13, 2021
2 parents 87f0468 + e1df70c commit b4c7dba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion get-platformio.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pioinstaller/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import logging.config

VERSION = (1, 0, 1)
VERSION = (1, 0, 2)
__version__ = ".".join([str(s) for s in VERSION])

__title__ = "platformio-installer"
Expand Down
8 changes: 6 additions & 2 deletions pioinstaller/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def _install_platformio_core(shutdown_piohome=True, develop=False, ignore_python


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

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

upgrade_core(platformio_exe, dev)
# capture exception when Internet is off-line
try:
upgrade_core(platformio_exe, dev)
except: # pylint:disable=bare-except
return result

try:
result.update(fetch_python_state(python_exe))
Expand Down

0 comments on commit b4c7dba

Please sign in to comment.