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)