diff --git a/bandit/core/manager.py b/bandit/core/manager.py index 034bafb7a..12f4cbfdb 100644 --- a/bandit/core/manager.py +++ b/bandit/core/manager.py @@ -247,6 +247,7 @@ def run_tests(self): try: if fname == '-': sys.stdin = _Seeker(os.fdopen(sys.stdin.fileno(), 'rb', 0)) + new_files_list = ["" if x=="-" else x for x in new_files_list] self._parse_file('', sys.stdin, new_files_list) else: with open(fname, 'rb') as fdata: