diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2022-06-24 23:19:00 +0200 |
---|---|---|
committer | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2022-12-24 11:47:51 +0100 |
commit | 829587b67d5be107bd44cfcb0c24e3bdddf0fc21 (patch) | |
tree | ebc533da721a68d33520c4d0a99e630d4f3b185e /pyGHDL/dom | |
parent | 960e44185ac356cca07d9d2eb6386e0286e31270 (diff) | |
download | ghdl-829587b67d5be107bd44cfcb0c24e3bdddf0fc21.tar.gz ghdl-829587b67d5be107bd44cfcb0c24e3bdddf0fc21.tar.bz2 ghdl-829587b67d5be107bd44cfcb0c24e3bdddf0fc21.zip |
Tiny fixes.
(cherry picked from commit 2cb36a37f5efa1185ba4c61ea65b49aa6e9345a0)
Diffstat (limited to 'pyGHDL/dom')
-rw-r--r-- | pyGHDL/dom/_Utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyGHDL/dom/_Utils.py b/pyGHDL/dom/_Utils.py index 3b647013b..d8cd9a15c 100644 --- a/pyGHDL/dom/_Utils.py +++ b/pyGHDL/dom/_Utils.py @@ -109,5 +109,5 @@ def GetModeOfNode(node: Iir) -> Mode: try: return __MODE_TRANSLATION[nodes.Get_Mode(node)] - except KeyError: - raise LibGHDLException("Unknown mode.") + except KeyError as ex: + raise DOMException(f"Unknown mode '{ex.args[0]}'.") from ex |