call Conf with full set of parameters, including debug

This commit is contained in:
Marcus Stoegbauer 2024-03-30 21:42:38 +01:00
parent e6d2b9a7bc
commit a986a70800

View File

@ -33,7 +33,7 @@ class Debug:
def get_config(filename, cfg):
"""reads filename as config, checks for DEST parameter and returns cfgfile object"""
try:
ret = Conf(filename)
ret = Conf(filename=filename, debug=cfg.debug, force_filename=True)
except ValueError:
cfg.debug.stderr("Error reading config file %s" % filename)
return False