Skip to content

Commit

Permalink
Added exception for ModuleNotFoundError.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Jul 7, 2023
1 parent 52c5a51 commit dca63ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/DependencyScan.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
from pyGHDL.dom.NonStandard import Design as DOMDesign, Document

withGHDL = True
except ImportError:
except (ImportError, ModuleNotFoundError) as ex: # pragma: no cover
withGHDL = False


Expand Down Expand Up @@ -101,4 +101,4 @@ def test_VHDLLibrary(self):
print()
print(f"Toplevel: {design.TopLevel}")
hierarchy = design.TopLevel.HierarchyVertex.ConvertToTree()
# print(hierarchy.Render())
print(hierarchy.Render())

0 comments on commit dca63ec

Please sign in to comment.