This commit is contained in:
Juhani Krekelä 2018-09-02 15:23:31 +03:00
parent 5f0d8e8d2d
commit 13d74c8d3f
1 changed files with 2 additions and 1 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(2)
if __name__ == '__main__':
try: