Whoops
This commit is contained in:
parent
5f0d8e8d2d
commit
13d74c8d3f
|
@ -122,7 +122,8 @@ def main():
|
||||||
write_file.write(args.outfile, matches)
|
write_file.write(args.outfile, matches)
|
||||||
|
|
||||||
# If we found nothing, return code 2
|
# If we found nothing, return code 2
|
||||||
sys.exit(2)
|
if len(matches) == 0:
|
||||||
|
sys.exit(2)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue