gen/fhdl/verilog/_printattr: Avoid trying translating attribute when not supported by Toolchain.

This commit is contained in:
Florent Kermarrec 2021-07-15 09:57:15 +02:00
parent 4fd974be10
commit bdc32171fd
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ def _printattr(attr, attr_translate):
attr_name, attr_value = attr
else:
# translated attribute
at = attr_translate[attr]
at = attr_translate.get(attr, None)
if at is None:
continue
attr_name, attr_value = at