aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/cli/DOM.py
diff options
context:
space:
mode:
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__