mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +00:00
refactor: Update cache TTL in ModelInfoManager even on download failure
This commit is contained in:
parent
e917424f5d
commit
788956e86d
1 changed files with 6 additions and 0 deletions
|
@ -754,6 +754,12 @@ class ModelInfoManager:
|
|||
pass
|
||||
except Exception as ex:
|
||||
print(str(ex))
|
||||
finally:
|
||||
# Touch the cache file to update its mtime even if download failed
|
||||
try:
|
||||
self.cache_file.touch()
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
def get_model_from_cached_json_db(self, model):
|
||||
if not self.content:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue