From 61fc7d858992ae070945b9e1cdb3a4407b6615ac Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 28 Jun 2017 01:01:03 +0300 Subject: [PATCH] Fix issue when can not load broken PIO Core state --- HISTORY.rst | 5 +++++ platformio/app.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index 10db7362..e4d63f26 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -4,6 +4,11 @@ Release Notes PlatformIO 3.0 -------------- +3.4.1 (2017-??-??) +~~~~~~~~~~~~~~~~~~ + +* Fixed issue when can not load broken PIO Core state + 3.4.0 (2017-06-26) ~~~~~~~~~~~~~~~~~~ diff --git a/platformio/app.py b/platformio/app.py index d4bfdb3e..f4e5ea2b 100644 --- a/platformio/app.py +++ b/platformio/app.py @@ -88,7 +88,7 @@ class State(object): self._lock_state_file() if isfile(self.path): self._state = util.load_json(self.path) - except ValueError: + except exception.PlatformioException: self._state = {} self._prev_state = deepcopy(self._state) return self._state