mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 01:04:59 +00:00
fix: Ignore recursion errors in cleanup method
This commit is contained in:
parent
ccf77e874d
commit
45d85b1419
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue