Inform about broken manifest while loading it // Resolve #899

This commit is contained in:
Ivan Kravets
2017-03-08 19:55:56 +02:00
parent d994da9d53
commit 8c283dc8a0

View File

@ -162,8 +162,12 @@ def singleton(cls):
def load_json(file_path):
with open(file_path, "r") as f:
return json.load(f)
try:
with open(file_path, "r") as f:
return json.load(f)
except ValueError:
raise exception.PlatformioException("Could not load broken JSON: %s" %
file_path)
def get_systype():