diff --git a/autosub/__init__.py b/autosub/__init__.py index 32c947c3..1ef9157e 100644 --- a/autosub/__init__.py +++ b/autosub/__init__.py @@ -141,8 +141,8 @@ def is_exe(file_path): def extract_audio(filename, channels=1, rate=16000): temp = tempfile.NamedTemporaryFile(suffix='.wav', delete=False) if not os.path.isfile(filename): - print("The given file does not exist: {0}".format(filename)) - raise Exception("Invalid filepath: {0}".format(filename)) + print("The given file does not exist: {}".format(filename)) + raise Exception("Invalid filepath: {}".format(filename)) if not which("ffmpeg"): print("ffmpeg: Executable not found on machine.") raise Exception("Dependency not found: ffmpeg")