Skip to content

Commit b1a1fa1

Browse files
committed
displaying traceback removed when user cancels a command.
1 parent ec3e969 commit b1a1fa1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

catholic/catholic.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ def catholic_features_callback(ctx: Context):
1515
# Execute this only if there is no sub command.
1616
# https://typer.tiangolo.com/tutorial/commands/context/#exclusive-executable-callback
1717

18-
if ctx.invoked_subcommand is None:
19-
display_welcome_text()
20-
interactive_cli()
18+
try:
19+
if ctx.invoked_subcommand is None:
20+
display_welcome_text()
21+
interactive_cli()
22+
except Exception:
23+
pass
2124

2225

2326
register_commands(cli)

0 commit comments

Comments
 (0)