tesseract: fix run call with logs_errors_to_stdout

This commit is contained in:
James R. Barlow
2020-11-29 14:25:46 -08:00
parent f0e7bea8ba
commit 80e957908a
+8 -1
View File
@@ -99,7 +99,14 @@ def get_languages():
args_tess = ['tesseract', '--list-langs']
try:
proc = run(args_tess, text=True, stdout=PIPE, stderr=STDOUT, check=True)
proc = run(
args_tess,
text=True,
stdout=PIPE,
stderr=STDOUT,
logs_errors_to_stdout=True,
check=True,
)
output = proc.stdout
except CalledProcessError as e:
raise MissingDependencyError(lang_error(e.output)) from e