Skip to content

Commit

Permalink
un-optimize cli file; it's useless with the barrel __init__
Browse files Browse the repository at this point in the history
  • Loading branch information
azuline committed Apr 16, 2024
1 parent 6b0ec50 commit f4c5ba3
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 95 deletions.
7 changes: 4 additions & 3 deletions rose_cli/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

import click

from rose_cli.cli import cli
from rose_lib import RoseExpectedError
from rose_cli.cli import CliExpectedError, cli


def main() -> None:
from rose_lib import RoseExpectedError

try:
cli()
except RoseExpectedError as e:
except (RoseExpectedError, CliExpectedError) as e:
click.secho(f"{e.__class__.__module__}.{e.__class__.__name__}: ", fg="red", nl=False)
click.secho(str(e))
sys.exit(1)
Expand Down
Loading

0 comments on commit f4c5ba3

Please sign in to comment.