diff --git a/napi b/napi index b7b0654..1231f76 100755 --- a/napi +++ b/napi @@ -83,9 +83,10 @@ for movie_filename in args: input_filename, # input file ] - with open(subtitle_filename, "w") as subtitle_file: - process = subprocess.Popen(executed, stdout=subtitle_file) - result = process.wait() + with open(os.devnull, 'w') as error_file: + with open(subtitle_filename, "w") as subtitle_file: + process = subprocess.Popen(executed, stdout=subtitle_file, stderr=error_file) + result = process.wait() if result != 0: print "%s: 7zip returned non-zero code: %s" % (movie_filename, subtitle_filename)