Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion chipcompiler/tools/ecc/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,20 @@ def load_data():

db_path = step.input.get("db", "")
if ecc_module.is_db_data_exists(db_path):
ecc_module.load_data(path=db_path)
try:
loaded = ecc_module.load_data(path=db_path)
except Exception as e:
workspace.logger.warning(
f"Failed to load ECC data from {db_path}; falling back to design input: {e}"
)
return None

if not loaded:
workspace.logger.warning(
f"Failed to load ECC data from {db_path}; falling back to design input."
)
return None

workspace.logger.info(f"Successfully loaded data from {db_path}")
return ecc_module
else:
Expand Down
Loading