Compare commits

...

2 Commits

Author SHA1 Message Date
Juhani Krekelä 8c0505a077 Only have 2 return codes: success and failure 2018-09-02 15:39:57 +03:00
Juhani Krekelä 13d74c8d3f Whoops 2018-09-02 15:23:31 +03:00
2 changed files with 3 additions and 2 deletions

View File

@ -122,7 +122,8 @@ def main():
write_file.write(args.outfile, matches)
# If we found nothing, return code 2
sys.exit(2)
if len(matches) == 0:
sys.exit(1)
if __name__ == '__main__':
try:

View File

@ -124,7 +124,7 @@ def main():
if any_verified and not any_fail:
sys.exit(0)
else:
sys.exit(2)
sys.exit(1)
if __name__ == '__main__':
try: