Skip to content

Commit

Permalink
fix for ruff UP015 rule
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Piskun <[email protected]>
  • Loading branch information
bigcat88 committed Nov 22, 2024
1 parent f771d68 commit e23a001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nc_py_api/ex_app/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def verify_version(finalize_update: bool = True) -> tuple[str, str] | None:
"""
version_file_path = os.path.join(persistent_storage(), "_version.info")
r = None
with open(version_file_path, "a+t", encoding="UTF-8") as version_file:
with open(version_file_path, "a+", encoding="UTF-8") as version_file:
version_file.seek(0)
old_version = version_file.read()
if old_version != os.environ["APP_VERSION"]:
Expand Down

0 comments on commit e23a001

Please sign in to comment.