From b5c898035ad336a33bdca05146374ee696a5fc84 Mon Sep 17 00:00:00 2001 From: Marcus Stoegbauer Date: Sat, 30 Mar 2024 00:57:14 +0100 Subject: [PATCH] fixed cfg.get syntax --- userconfig/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/userconfig/__init__.py b/userconfig/__init__.py index 56cccc9..0644240 100644 --- a/userconfig/__init__.py +++ b/userconfig/__init__.py @@ -71,8 +71,8 @@ class Userconfig: return False # assemble file to tmp commentstring = "" - if dir_config.check("Main", "commentstring"): - commentstring = dir_config.get("Main", "commentstring") + if dir_config.check(section="Main", option="commentstring"): + commentstring = dir_config.get(section="Main", option="commentstring") self._cfg.debug.stdout(" +++ Found commentstring %s in %s" % (commentstring, df), 3) tempfilename = self.build_file(destfiles[df], df, commentstring)