Skip to content

Commit

Permalink
Merge pull request #228 from Holzhaus/fix-string-format-bug
Browse files Browse the repository at this point in the history
Fix bug #227: Not all arguments converted during string formatting
  • Loading branch information
Holzhaus committed Oct 20, 2014
2 parents 090eb91 + 316bb0e commit 4ff5a97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/g2p.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ def __new__(cls, fst_model=None, *args, **kwargs):
"check if Phonetisaurus is installed and in your " +
"$PATH.")
if fst_model is None or not os.access(fst_model, os.R_OK):
raise OSError("FST model '%r' does not exist! Can't create " +
"instance." % fst_model)
raise OSError(("FST model '%r' does not exist! Can't create " +
"instance.") % fst_model)
inst = object.__new__(cls, fst_model, *args, **kwargs)
return inst

Expand Down

0 comments on commit 4ff5a97

Please sign in to comment.