From d3bc5e21866aad2cf42c2840b7cac03a750e6d59 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 --- 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]: