Skip to content

Commit

Permalink
Fix bug #227: Not all arguments converted during string formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Oct 20, 2014
1 parent 090eb91 commit 316bb0e
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 316bb0e

Please sign in to comment.