From 88704490fcc19f15c7a936e651497b8ab594fe48 Mon Sep 17 00:00:00 2001 From: mhorky Date: Thu, 25 Jan 2024 15:23:51 +0100 Subject: [PATCH] Prevent double-logging of syspurpose cache log statement This was caused by accident during refactoring in 412d246b668bae3db0d89ea4983b8e4cf17432ba --- src/syspurpose/files.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/syspurpose/files.py b/src/syspurpose/files.py index 6c7cd72e12..fe9c5a2d8a 100644 --- a/src/syspurpose/files.py +++ b/src/syspurpose/files.py @@ -649,6 +649,7 @@ def _update_file(cls, path: str, data: dict) -> None: f.flush() f.close() log.debug("Successfully updated syspurpose values at '%s'." % path) + return log.debug("Failed to update syspurpose values at '%s'." % path) def get_valid_fields(self) -> Union[dict, None]: