Claudia Pellegrino 08165c57a2 fix: exclude regular classes that end with Error
In an attempt to fix issue #4615 [1], commit 656301c [2] introduces a
regression where running the `coder` feature raises the following error:

> TypeError: catching classes that do not inherit from BaseException is not allowed

The primary misunderstanding that caused the regression is the fact that
`ErrorEventError` sounds like an error class that needs to be included
in the exceptions list. In reality, however, the name `ErrorEventError`
is just a coincidence and actually belongs to a regular class, which
doesn’t have `BaseException` in its chain of base classes.

Current Python versions raise a `TypeError` at runtime if you try to
include such a class name in an `except` clause, which explains why the
error shows up.

Narrow down the filter so it only tries to include actual exception
classes and excludes classes like `ErrorEventError`.
Also remove `ErrorEventError` from the exception list.

Fixes issue #4615 [1] and #4724 [3]. Reverts commit 656301c [2].

[1]: https://github.com/Aider-AI/aider/issues/4615

[2]: 656301cc87

[3]: https://github.com/Aider-AI/aider/issues/4724
2026-01-04 15:26:28 +01:00
2025-08-09 12:29:10 -03:00
2024-07-13 07:47:36 +01:00
2025-03-31 14:13:54 +13:00
2023-05-15 12:54:06 -07:00
2025-01-09 09:56:49 -08:00
2025-08-09 12:56:55 -03:00
2023-05-15 08:29:00 -07:00
2024-12-16 15:57:13 -08:00
2025-12-18 10:37:28 -08:00

Aider Logo

AI Pair Programming in Your Terminal

Aider lets you pair program with LLMs to start a new project or build on your existing codebase.

aider screencast

GitHub Stars PyPI Downloads Tokens per week OpenRouter Ranking Singularity

Features

Cloud and local LLMs

Aider works best with Claude 3.7 Sonnet, DeepSeek R1 & Chat V3, OpenAI o1, o3-mini & GPT-4o, but can connect to almost any LLM, including local models.


Maps your codebase

Aider makes a map of your entire codebase, which helps it work well in larger projects.


100+ code languages

Aider works with most popular programming languages: python, javascript, rust, ruby, go, cpp, php, html, css, and dozens more.


Git integration

Aider automatically commits changes with sensible commit messages. Use familiar git tools to easily diff, manage and undo AI changes.


Use in your IDE

Use aider from within your favorite IDE or editor. Ask for changes by adding comments to your code and aider will get to work.


Images & web pages

Add images and web pages to the chat to provide visual context, screenshots, reference docs, etc.


Voice-to-code

Speak with aider about your code! Request new features, test cases or bug fixes using your voice and let aider implement the changes.


Linting & testing

Automatically lint and test your code every time aider makes changes. Aider can fix problems detected by your linters and test suites.


Copy/paste to web chat

Work with any LLM via its web chat interface. Aider streamlines copy/pasting code context and edits back and forth with a browser.

Getting Started

python -m pip install aider-install
aider-install

# Change directory into your codebase
cd /to/your/project

# DeepSeek
aider --model deepseek --api-key deepseek=<key>

# Claude 3.7 Sonnet
aider --model sonnet --api-key anthropic=<key>

# o3-mini
aider --model o3-mini --api-key openai=<key>

See the installation instructions and usage documentation for more details.

More Information

Documentation

Community & Resources

Kind Words From Users

Description
Mirrored from GitHub
Readme 710 MiB
Languages
Python 80.1%
CSS 4%
Shell 4%
Scheme 3.9%
JavaScript 3.7%
Other 4.3%