Skip to content

Commit

Permalink
displaying traceback removed when user cancels a command.
Browse files Browse the repository at this point in the history
  • Loading branch information
aseemsavio committed Dec 24, 2022
1 parent ec3e969 commit b1a1fa1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions catholic/catholic.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ def catholic_features_callback(ctx: Context):
# Execute this only if there is no sub command.
# https://typer.tiangolo.com/tutorial/commands/context/#exclusive-executable-callback

if ctx.invoked_subcommand is None:
display_welcome_text()
interactive_cli()
try:
if ctx.invoked_subcommand is None:
display_welcome_text()
interactive_cli()
except Exception:
pass


register_commands(cli)

0 comments on commit b1a1fa1

Please sign in to comment.