Skip to content

Commit 09a16f2

Browse files
committed
Check for import errors before running filter
1 parent fa02838 commit 09a16f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

fusesoc/edalizer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,11 @@ def apply_filters(self, global_filters):
8888
filter_class = getattr(
8989
import_module(f"fusesoc.filters.{f}"), f.capitalize()
9090
)
91-
logger.info(f"Applying filter {f}")
92-
self.edam = filter_class().run(self.edam, self.work_root)
9391
except ModuleNotFoundError:
9492
raise RuntimeError(f"Could not find EDAM filter '{f}'")
93+
logger.info(f"Applying filter {f}")
94+
try:
95+
self.edam = filter_class().run(self.edam, self.work_root)
9596
except Exception as e:
9697
import traceback
9798

0 commit comments

Comments
 (0)