Skip to content

Commit

Permalink
Merge pull request #105 from alopatindev/python3-syntax-error
Browse files Browse the repository at this point in the history
Fix #96 SyntaxError: invalid syntax
  • Loading branch information
agermanidis authored Oct 10, 2018
2 parents 249a96d + d9241c2 commit b049c28
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 b049c28

Please sign in to comment.