forked from platformio/platformio-core
Inform about broken manifest while loading it // Resolve #899
This commit is contained in:
@ -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():
|
||||
|
Reference in New Issue
Block a user