mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
refactor: improve error message matching flexibility
This commit is contained in:
parent
48272449bb
commit
ea4e58e509
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue