From 014a0802f84629d1479122b9a056288a66004c23 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 9 Jan 2023 13:27:52 +0100 Subject: [PATCH] config: make sure to reload file after saving it To ensure the configparser object is uptodate. --- mylib/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mylib/config.py b/mylib/config.py index bacc4f7..ec50ba1 100644 --- a/mylib/config.py +++ b/mylib/config.py @@ -758,6 +758,7 @@ class Config: # pylint: disable=too-many-instance-attributes log.exception( 'Failed to write generated configuration file %s', filepath) return False + self.load_file(filepath) return True @property