diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index 8f13baff9..287bd9685 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -146,12 +146,11 @@ class Coder: if edit_format != from_coder.edit_format and done_messages and summarize_from_coder: try: done_messages = from_coder.summarizer.summarize_all(done_messages) - except ValueError as e: + except ValueError: # If summarization fails, keep the original messages and warn the user io.tool_warning( "Chat history summarization failed, continuing with full history" ) - io.tool_warning(str(e)) # Bring along context from the old Coder update = dict(