Skip to content

Include typer-based exit for all interfaces #462

@nathanjmcdougall

Description

@nathanjmcdougall

Motivation
I suppose this should really be ensured using a decorator or something, but it's been forgotten to have code to catch errors properly. We should be doing something like this for all interface functions:

    except UsethisError as err:
        err_print(err)
        raise typer.Exit(code=1) from None

Summary of desired enhancement
Catch all errors and raise in the typer framework. Consider a way to make sure this happens in the future through some kind of automation.

Metadata

Metadata

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions