Misc log (#57)

* add logging when attempting to remove non-existant file

* update changelog
This commit is contained in:
derek-hirotsu
2023-09-29 10:40:26 -07:00
committed by GitHub
parent 34ddbefaed
commit 9c9084b0f1
2 changed files with 5 additions and 1 deletions

View File

@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
Changes are grouped by the date they are merged to the main branch of the repository and are ordered from newest to oldest. Dates use the ISO 8601 extended calendar date format, i.e. YYYY-MM-DD.
## 2023-09-29
- Add logging to `harness_utils.misc.remove_files` when attempting to remove a file that doesn't exist.
## 2023-09-27
- First

View File

@@ -11,4 +11,4 @@ def remove_files(paths: list[str]) -> None:
os.remove(path)
logging.info("Removed file: %s", path)
except FileNotFoundError:
pass
logging.info("File already removed: %s", path)