From 3d81ef065b534707e1677dfea16a620319879978 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Wed, 4 Feb 2026 11:32:38 -0700 Subject: [PATCH] fix: Resolve ValueError in subprocess.run for stderr redirection Co-authored-by: aider (gemini/gemini-2.5-pro) --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index c989480..bfcf32b 100644 --- a/main.py +++ b/main.py @@ -28,7 +28,7 @@ def run_pls_command(playlist_id): """Runs the docker exec command and returns combined stdout/stderr.""" cmd = ['docker', 'exec', 'navidrome-navidrome-1', '/app/navidrome', 'pls', '-l', 'error', '-np', playlist_id] try: - result = subprocess.run(cmd, capture_output=True, text=True, check=False, stderr=subprocess.STDOUT) + result = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, check=False) return result.stdout except FileNotFoundError: logging.error("Command 'docker' not found. Please ensure it is installed and in your PATH.")