diff --git a/src/main-filter.py b/src/main-filter.py index 1c043b8..3cd41cf 100644 --- a/src/main-filter.py +++ b/src/main-filter.py @@ -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: