gendummydata.py: set exit code to 1 when there is an error

Of course the default exit code is 0...

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Jakub Klinkovský 2020-09-04 23:13:56 +02:00 committed by Lukas Fleischer
parent 92e315465b
commit 879c0622d6

View file

@ -44,19 +44,19 @@ log = logging.getLogger()
if len(sys.argv) != 2:
log.error("Missing output filename argument")
raise SystemExit
raise SystemExit(1)
# make sure the seed file exists
#
if not os.path.exists(SEED_FILE):
log.error("Please install the 'words' Arch package")
raise SystemExit
raise SystemExit(1)
# make sure comments can be created
#
if not os.path.exists(FORTUNE_FILE):
log.error("Please install the 'fortune-mod' Arch package")
raise SystemExit
raise SystemExit(1)
# track what users/package names have been used
#