diff options
| -rw-r--r-- | client/g2p.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/client/g2p.py b/client/g2p.py index 9e715c9..7b03386 100644 --- a/client/g2p.py +++ b/client/g2p.py @@ -39,10 +39,9 @@ class PhonetisaurusG2P(object): proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdoutdata, stderrdata = proc.communicate() - returncode = proc.returncode - if returncode != 0: + if proc.returncode != 0: logger.warning("Command '%s' return with exit status %d", - ' '.join(cmd), returncode) + ' '.join(cmd), proc.returncode) except OSError: logger.error("Error occured while executing command '%s'", ' '.join(cmd), exc_info=True) |
