mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-06 20:54: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:
|
except Exception as err:
|
||||||
io.tool_error(f"Error checking pypi for new version: {err}")
|
io.tool_error(f"Error checking pypi for new version: {err}")
|
||||||
return False
|
return False
|
||||||
|
finally:
|
||||||
fname.parent.mkdir(parents=True, exist_ok=True)
|
fname.parent.mkdir(parents=True, exist_ok=True)
|
||||||
fname.touch()
|
fname.touch()
|
||||||
|
|
||||||
if just_check:
|
if just_check:
|
||||||
return is_update_available
|
return is_update_available
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue