mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-10 08:37:19 +01:00
Fixes stderr appearing to have content when it doesn't
This commit is contained in:
parent
9a47963fd5
commit
c4965580de
2 changed files with 19 additions and 4 deletions
|
|
@ -537,11 +537,19 @@ class Consumer(LoggingMixin):
|
|||
)
|
||||
|
||||
# Decode the output (if any)
|
||||
stdout_str = completed_process.stdout.decode("utf8", errors="ignore").split(
|
||||
"\n",
|
||||
stdout_str = (
|
||||
completed_process.stdout.decode("utf8", errors="ignore")
|
||||
.strip()
|
||||
.split(
|
||||
"\n",
|
||||
)
|
||||
)
|
||||
stderr_str = completed_process.stderr.decode("utf8", errors="ignore").split(
|
||||
"\n",
|
||||
stderr_str = (
|
||||
completed_process.stderr.decode("utf8", errors="ignore")
|
||||
.strip()
|
||||
.split(
|
||||
"\n",
|
||||
)
|
||||
)
|
||||
|
||||
if len(stdout_str):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue