diff --git a/client/g2p.py b/client/g2p.py index 7b033868b..c40e3a262 100644 --- a/client/g2p.py +++ b/client/g2p.py @@ -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