Skip to content

Commit

Permalink
Fix #96 SyntaxError: invalid syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
alopatindev committed Sep 27, 2018
1 parent 249a96d commit d9241c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autosub/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit d9241c2

Please sign in to comment.