1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-19 04:20:22 +01:00

otherwise setup.py build wont work

This commit is contained in:
Guido Serra
2019-09-09 11:32:51 +02:00
parent 49ad8e4653
commit 8c2696b78c
2 changed files with 2 additions and 1 deletions

View File

@@ -631,7 +631,7 @@ class compile_translations(Command):
msgfmt = subprocess.Popen(['msgfmt', '--statistics', pofile,
'-o', '/dev/null'], stderr=subprocess.PIPE)
returncode = msgfmt.wait() # let it finish, and get the exit code
output = msgfmt.stderr.readline().strip()
output = msgfmt.stderr.readline().strip().decode('utf-8')
if len(output) == 0 or returncode != 0:
print(len(output), returncode)
raise ValueError