mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 20:22:46 +00:00
Properly catch TitoException
This is for example raised by builders, e.g. ERROR: Builder missing required argument: mock
This commit is contained in:
parent
6570577782
commit
bb3e661124
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue