From ea4e58e509f8fc14b87f359bdf1707ae06ff3821 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Sat, 5 Oct 2024 11:37:15 -0700 Subject: [PATCH] refactor: improve error message matching flexibility --- aider/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/main.py b/aider/main.py index 7b3784318..ba0b03e0b 100644 --- a/aider/main.py +++ b/aider/main.py @@ -381,7 +381,7 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F try: args, unknown = parser.parse_known_args(argv) except AttributeError as e: - if "'bool' object has no attribute 'strip'" in str(e): + if all(word in str(e) for word in ["bool", "object", "has", "no", "attribute", "strip"]): if check_config_files_for_yes(default_config_files): return 1 raise e