mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
92e315465b
commit
879c0622d6
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue