diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d22a17..b672ffb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.13.3] - 2025-05-28 + +### Fixed + +- unlink() only existing files + ## [0.13.2] - 2025-05-28 ### Changed diff --git a/ogclient/lib/python3/ProtocolLib.py b/ogclient/lib/python3/ProtocolLib.py index 98b95ec..0388875 100644 --- a/ogclient/lib/python3/ProtocolLib.py +++ b/ogclient/lib/python3/ProtocolLib.py @@ -926,6 +926,7 @@ def ogUpdateCacheIsNecesary (repo, file, proto): else: print ('imagen en cache distinta, borramos la imagen anterior') for f in [f'{filetarget}', f'{filetarget}.sum', f'{filetarget}.torrent', f'{filetarget}.full.sum']: - os.unlink (f) + if os.path.exists (f): + os.unlink (f) print ('TRUE (0), Si es necesario actualizar.') return True