1 Commits

Author SHA1 Message Date
ac107458 3577389e4e fix local show (postcat) 2026-01-15 12:43:51 +01:00
+1 -2
View File
@@ -479,9 +479,8 @@ class LocalSource(Source):
"""stdout and stderr of postcat; stdout is None if we got non-zero status"""
if not re.fullmatch(r'[A-Z0-9]+', queue_id):
return (None, f"Invalid queue id: {queue_id!r} - expected /[A-Z0-9]+/".encode())
flags_s = ' '.join(flags)
res: subprocess.CompletedProcess = await trio.run_process(
['/usr/sbin/postcat'] + list(flags_s) + ['-q', queue_id],
['/usr/sbin/postcat'] + list(flags) + ['-q', queue_id],
capture_stdout=True,
capture_stderr=True,
check=False,