mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
moved versioncheck touch into finally
This commit is contained in:
parent
8948c7d47b
commit
88749a8acb
1 changed files with 3 additions and 3 deletions
|
@ -29,9 +29,9 @@ def check_version(io, just_check=False):
|
|||
except Exception as err:
|
||||
io.tool_error(f"Error checking pypi for new version: {err}")
|
||||
return False
|
||||
|
||||
fname.parent.mkdir(parents=True, exist_ok=True)
|
||||
fname.touch()
|
||||
finally:
|
||||
fname.parent.mkdir(parents=True, exist_ok=True)
|
||||
fname.touch()
|
||||
|
||||
if just_check:
|
||||
return is_update_available
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue