commit 07e40ca3fc753b6c1d7abeab7554e2d71f3541bb
parent b6744ae62a48d6bd1334f54c93e567963c589a21
Author: lash <dev@holbrook.no>
Date: Sun, 8 Mar 2026 18:11:28 -0600
Return value on add
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/confini/config.py b/confini/config.py
@@ -123,7 +123,10 @@ class Config:
else:
if value_stored != value:
logg.debug('updating key {}'.format(constant_name))
+ else:
+ return None
self.store[constant_name] = value
+ return value
def censor(self, identifier, section=None):