mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-02 04:55:36 +00:00
Fixes stderr appearing to have content when it doesn't
This commit is contained in:
1 parent
9a47963fd5
commit
c4965580de
2 files changed
+19
-4
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user