Machinexa2
2020-08-10 15:25:38 +05:45
committed by GitHub
parent 79853cfcf9
commit ed7006c690

View File

@@ -252,8 +252,9 @@ class InputHelper(object):
ranges.add(arguments.target)
else:
target_file = arguments.target_list
if not sys.stdin.isatty():
target_file = sys.stdin
if not os.path.exists(target_file):
if not sys.stdin.isatty():
target_file = sys.stdin
ranges.update([target.strip() for target in target_file if target.strip()])
# process exclusions first