Skip to content

Commit

Permalink
fix: include stack trace in log file (DEV-3157) (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnussbaum committed Jan 9, 2024
1 parent 9efd9a0 commit 9046792
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dsp_tools/cli/entry_point.py
Expand Up @@ -65,12 +65,12 @@ def run(args: list[str]) -> None:
)
success = call_requested_action(parsed_arguments)
except BaseError as err:
logger.error(err)
logger.exception(err)
print("\nThe process was terminated because of an Error:")
print(err.message)
sys.exit(1)
except Exception as err: # noqa: BLE001 (blind-except)
logger.error(err)
except Exception as err:
logger.exception(err)
raise InternalError from None

if not success:
Expand Down

0 comments on commit 9046792

Please sign in to comment.