Skip to content

Commit

Permalink
chore: hide stack trace from user (DEV-3158) (#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnussbaum committed Jan 9, 2024
1 parent f6b6dde commit 808c01c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/dsp_tools/cli/entry_point.py
Expand Up @@ -69,9 +69,10 @@ def run(args: list[str]) -> None:
print("\nThe process was terminated because of an Error:")
print(err.message)
sys.exit(1)
except Exception as err:
logger.exception(err)
raise InternalError from None
except Exception as err: # noqa: BLE001 (blind-except)
logger.error(err)
print(InternalError())
sys.exit(1)

if not success:
logger.error("Terminate without success")
Expand Down

0 comments on commit 808c01c

Please sign in to comment.