From 45d85b141989adb0447ca42298338d40fd8975b9 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 20 Aug 2024 08:06:28 -0700 Subject: [PATCH] fix: Ignore recursion errors in cleanup method --- aider/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)