diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8b2f9c6e..4acfc41d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -41,7 +41,7 @@ repos: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.3 + rev: v0.7.4 hooks: - id: ruff diff --git a/nc_py_api/ex_app/misc.py b/nc_py_api/ex_app/misc.py index 5fbc0954..b6902a2b 100644 --- a/nc_py_api/ex_app/misc.py +++ b/nc_py_api/ex_app/misc.py @@ -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"]: