Exit with nonzero code on error

This commit is contained in:
Ivan Habunek 2019-08-12 13:47:48 +02:00
parent 9dc67a7ff1
commit 0fff0a4de1
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95

View File

@ -1,5 +1,7 @@
# -*- coding: utf-8 -*-
import sys
from argparse import ArgumentParser, ArgumentTypeError
from collections import namedtuple
@ -125,3 +127,4 @@ def main():
args.func(**args.__dict__)
except ConsoleError as e:
print_err(e)
sys.exit(1)