aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/cli/DOM.py
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-23 16:32:45 +0200
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-23 16:32:45 +0200
commit240b4fdd90a9f3ca04e8e168bffdc92bea2ca3f3 (patch)
treee1706cb19a2439e3d94657e54c688a36c703f048 /pyGHDL/cli/DOM.py
parent11f1ebbc80250555474cfe22e1db10553e112a11 (diff)
downloadghdl-240b4fdd90a9f3ca04e8e168bffdc92bea2ca3f3.tar.gz
ghdl-240b4fdd90a9f3ca04e8e168bffdc92bea2ca3f3.tar.bz2
ghdl-240b4fdd90a9f3ca04e8e168bffdc92bea2ca3f3.zip
Minor fixes and pinned pyVHDLModel version to v0.10.3.
Diffstat (limited to 'pyGHDL/cli/DOM.py')
-rwxr-xr-xpyGHDL/cli/DOM.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyGHDL/cli/DOM.py b/pyGHDL/cli/DOM.py
index 68af8ec1a..dceafc629 100755
--- a/pyGHDL/cli/DOM.py
+++ b/pyGHDL/cli/DOM.py
@@ -10,7 +10,7 @@ from pydecor import export
from pyGHDL import GHDLBaseException
from pyGHDL.libghdl import LibGHDLException
from pyGHDL.dom.Common import DOMException
-from pyGHDL.dom.NonStandard import Design, Document, Library
+from pyGHDL.dom.NonStandard import Design, Document
from pyGHDL.dom.formatting.prettyprint import PrettyPrint, PrettyPrintException
__all__ = []
@@ -45,7 +45,7 @@ class Application:
def handleException(ex):
if isinstance(ex, PrettyPrintException):
print("PP:", ex)
- return 5
+ return 0
elif isinstance(ex, DOMException):
print("DOM:", ex)
ex2 = ex.__cause__