From b2f107b76c375787f55ca978d483f494b323bf49 Mon Sep 17 00:00:00 2001 From: Fu Hanxi Date: Wed, 25 May 2022 12:00:13 +0800 Subject: [PATCH] fix: espcoredump without project_description.json in ci --- components/espcoredump/espcoredump.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/espcoredump/espcoredump.py b/components/espcoredump/espcoredump.py index 0e3a412332..9de5ba7848 100644 --- a/components/espcoredump/espcoredump.py +++ b/components/espcoredump/espcoredump.py @@ -22,7 +22,8 @@ def get_prefix_map_gdbinit_path(prog_path): # type: (str) -> Any build_dir = os.path.abspath(os.path.dirname(prog_path)) desc_path = os.path.abspath(os.path.join(build_dir, 'project_description.json')) if not os.path.isfile(desc_path): - raise ValueError(f'{desc_path} does not exist. Please build the app with "idf.py build"') + logging.warning('%s does not exist. Please build the app with "idf.py build"', desc_path) + return '' with open(desc_path, 'r') as f: project_desc = json.load(f)