Skip to content

Commit dc21ae5

Browse files
committed
Gracefully handle syntax errors in dependencies
1 parent a63f520 commit dc21ae5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

fusesoc/coremanager.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,12 @@ def eq_vln(this, that):
325325
# tree.
326326
if not only_matching_vlnv:
327327
_flags["is_toplevel"] = core.name == top_core
328-
_depends = core.get_depends(_flags)
328+
try:
329+
_depends = core.get_depends(_flags)
330+
except SyntaxError as e:
331+
logger.warning(
332+
f"Ignoring {core.name} due to syntax error in dependencies: {e.msg}"
333+
)
329334
if _depends:
330335
for depend in _depends:
331336
self._mapping_apply(depend)

0 commit comments

Comments
 (0)