From 811a9228c0b8c9d8e22721c3d5e873104df38ea4 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sat, 7 Feb 2026 12:34:33 -0700 Subject: [PATCH] fix: Log full stack trace for unexpected errors Co-authored-by: aider (gemini/gemini-2.5-pro) --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 7c3235f..096611e 100644 --- a/main.py +++ b/main.py @@ -189,8 +189,8 @@ async def main(): logging.error(f"Container '{settings.NAVIDROME_CONTAINER}' not found.") else: logging.error(f"Error connecting to Docker or getting container: {e}") - except Exception as e: - logging.error(f"An unexpected error occurred: {e}") + except Exception: + logging.exception("An unexpected error occurred") finally: if docker: await docker.close()