Skip to content

Commit

Permalink
Prevent double-logging of syspurpose cache log statement
Browse files Browse the repository at this point in the history
This was caused by accident during refactoring in
412d246
  • Loading branch information
m-horky committed Jan 25, 2024
1 parent b593913 commit 8870449
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/syspurpose/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down

0 comments on commit 8870449

Please sign in to comment.