diff --git a/aider/utils.py b/aider/utils.py index e2d48d3b1..95253dc2b 100644 --- a/aider/utils.py +++ b/aider/utils.py @@ -26,8 +26,8 @@ class IgnorantTemporaryDirectory: def cleanup(self): try: self.temp_dir.cleanup() - except (OSError, PermissionError): - pass # Ignore errors (Windows) + except (OSError, PermissionError, RecursionError): + pass # Ignore errors (Windows and potential recursion) def __getattr__(self, item): return getattr(self.temp_dir, item)