Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
silenced unpaper once and for all
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Winkler committed Nov 3, 2020
1 parent f4cebda commit 28ba634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/documents/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def run_unpaper(pnm, logging_group=None):

logger.debug("Execute: " + " ".join(command_args), extra={'group': logging_group})

if not subprocess.Popen(command_args).wait() == 0:
if not subprocess.Popen(command_args, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL).wait() == 0:
raise ParseError("Unpaper failed at {}".format(command_args))

return pnm_out
Expand Down

0 comments on commit 28ba634

Please sign in to comment.