Fix issue when can not load broken PIO Core state

This commit is contained in:
Ivan Kravets
2017-06-28 01:01:03 +03:00
parent 0deb623ad5
commit 61fc7d8589
2 changed files with 6 additions and 1 deletions

View File

@ -4,6 +4,11 @@ Release Notes
PlatformIO 3.0 PlatformIO 3.0
-------------- --------------
3.4.1 (2017-??-??)
~~~~~~~~~~~~~~~~~~
* Fixed issue when can not load broken PIO Core state
3.4.0 (2017-06-26) 3.4.0 (2017-06-26)
~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~

View File

@ -88,7 +88,7 @@ class State(object):
self._lock_state_file() self._lock_state_file()
if isfile(self.path): if isfile(self.path):
self._state = util.load_json(self.path) self._state = util.load_json(self.path)
except ValueError: except exception.PlatformioException:
self._state = {} self._state = {}
self._prev_state = deepcopy(self._state) self._prev_state = deepcopy(self._state)
return self._state return self._state