We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39bbc52 commit ea958aaCopy full SHA for ea958aa
nettowel/cli/main.py
@@ -23,7 +23,7 @@
23
from nettowel.cli.pandas import app as pandas_app
24
from nettowel.cli.help import get_qrcode, HELP_MARKDOWN
25
26
-from nettowel.trogon_tui import run_trogon_tui
+from nettowel.exceptions import NettowelDependencyMissing
27
28
app = get_typer_app(help="Awesome collection of network automation functions")
29
@@ -78,7 +78,13 @@ def help(
78
79
@app.command(help="Textual/Trogon TUI")
80
def tui(ctx: typer.Context) -> None:
81
- run_trogon_tui(app=app, ctx=ctx)
+ try:
82
+ from nettowel.trogon_tui import run_trogon_tui
83
+
84
+ run_trogon_tui(app=app, ctx=ctx)
85
+ except NettowelDependencyMissing as exc:
86
+ typer.echo(str(exc), err=True)
87
+ raise typer.Exit(1)
88
89
90
def run() -> None:
0 commit comments