Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #59 from AntelopeIO/exception_capture_fix
Browse files Browse the repository at this point in the history
Fix exception capture exit
  • Loading branch information
ScottBailey authored Nov 15, 2022
2 parents 5929f22 + bd1f0bd commit 1e0892a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/dune/__main__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import sys # sys.exit()

from args import arg_parser
from args import parse_optional
from dune import dune
Expand Down Expand Up @@ -159,6 +161,8 @@
except KeyboardInterrupt:
pass
except dune_node_not_found as err:
print('Node not found [' + err.name() + ']')
print('Node not found [' + err.name() + ']', file=sys.stderr)
sys.exit(1)
except dune_error as err:
print("Internal Error")
print("Internal Error", file=sys.stderr)
sys.exit(1)

0 comments on commit 1e0892a

Please sign in to comment.