From 300a179400dcaa0e16ca73e36ab11081073e4b0a Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Fri, 13 Oct 2023 12:03:57 +0300 Subject: [PATCH] fix: fails when project is missing synthesis-stats.txt --- project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project.py b/project.py index 9acf663..ed1e9ff 100644 --- a/project.py +++ b/project.py @@ -803,7 +803,7 @@ class Project: if m is not None: num_cells = int(m.group(1)) - except IndexError: + except (IndexError, FileNotFoundError): logging.warning(f"couldn't open yosys cell report for cell checking {self}") return num_cells