aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/dom/Common.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyGHDL/dom/Common.py')
-rw-r--r--pyGHDL/dom/Common.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/pyGHDL/dom/Common.py b/pyGHDL/dom/Common.py
index 88d0cdc8c..984f06e86 100644
--- a/pyGHDL/dom/Common.py
+++ b/pyGHDL/dom/Common.py
@@ -37,8 +37,8 @@
"""
from pydecor import export
-from pyGHDL import GHDLBaseException
-from pyGHDL.libghdl import LibGHDLException, errorout_memory
+from pyGHDL import GHDLBaseException
+from pyGHDL.libghdl import LibGHDLException, errorout_memory
__all__ = []
@@ -61,5 +61,6 @@ class GHDLMixin:
for i in range(errorCount):
print(errorout_memory.Get_Error_Message(i + 1))
- raise DOMException("Error in libghdl.") \
- from LibGHDLException("libghdl: Internal error 2.")
+ raise DOMException("Error in libghdl.") from LibGHDLException(
+ "libghdl: Internal error 2."
+ )