danpovey / pocolm

Small language toolkit for creation, interpolation and pruning of ARPA language models
Other
90 stars 48 forks source link

Minor import bug #54

Open danijel3 opened 8 years ago

danijel3 commented 8 years ago

Don't feel like making a pull requesrt for a single line of code.

In scripts/internal/pocolm_common.py:55, CalledProcessError is used without being properly imported. This error occurs only if subprocess.check_output fails.

Solution: either change that to read subprocess.CalledProcessError or add from subprocess import CalledProcessError at the beginning of the file.

danpovey commented 8 years ago

+keli78, can you please make a PR for this?

On Fri, Aug 19, 2016 at 5:57 AM, Danijel Koržinek notifications@github.com wrote:

Don't feel like making a pull requesrt for a single line of code.

In scripts/internal/pocolm_common.py:55, CalledProcessError is used without being properly imported. This error occurs only if subprocess.check_output fails.

Solution: either change that to read subprocess.CalledProcessError or add from subprocess import CalledProcessError at the beginning of the file.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/danpovey/pocolm/issues/54, or mute the thread https://github.com/notifications/unsubscribe-auth/ADJVu5yim30uIGtqa90wPYidSf9T22ANks5qhYwmgaJpZM4JoXgz .