From cf048f3af682fb7ee9275838eebb4def63ed60fb Mon Sep 17 00:00:00 2001 From: schneefux Date: Mon, 20 Oct 2014 12:00:43 +0200 Subject: Fix bug #227: Not all arguments converted during string formatting --- client/g2p.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client') diff --git a/client/g2p.py b/client/g2p.py index 7b03386..c40e3a2 100644 --- a/client/g2p.py +++ b/client/g2p.py @@ -86,8 +86,8 @@ class PhonetisaurusG2P(object): "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 -- cgit v1.3.1