Skip to content

Optionally disable Exception catch and locals print#117

Open
JannisNe wants to merge 3 commits into
AmpelProject:masterfrom
JannisNe:feature-disable-catch-and-local-print
Open

Optionally disable Exception catch and locals print#117
JannisNe wants to merge 3 commits into
AmpelProject:masterfrom
JannisNe:feature-disable-catch-and-local-print

Conversation

@JannisNe
Copy link
Copy Markdown

If an exception occurs during a CLI command, it is caught and the process exits with return code 1. This prevents IDEs from directly referencing the part of the code that raised the exception, enter debug mode at that place, etc.
This adds two flags to the CLI without changing the current default behavior:

  • -no-catch: disable the catching of Exceptions completely and let the code fail
  • -no-print-locals: Avoid including local variables in the traceback stack for readability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant