Skip to content

Commit

Permalink
Properly catch TitoException
Browse files Browse the repository at this point in the history
This is for example raised by builders, e.g.

    ERROR: Builder missing required argument: mock
  • Loading branch information
FrostyX committed May 1, 2022
1 parent 6570577 commit bb3e661
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tito/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,9 @@ def main():
"""Command line's entry point."""
try:
CLI().main(sys.argv[1:])
except TitoException:
e = sys.exc_info()[1]
error_out(e.message)
except KeyboardInterrupt:
pass

Expand Down

0 comments on commit bb3e661

Please sign in to comment.