From 13d74c8d3fd9768e8c1fa09f403911d77e205d4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Sun, 2 Sep 2018 15:23:31 +0300 Subject: [PATCH] Whoops --- src/main-filter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: