call Conf with full set of parameters, including debug
This commit is contained in:
@@ -33,7 +33,7 @@ class Debug:
|
|||||||
def get_config(filename, cfg):
|
def get_config(filename, cfg):
|
||||||
"""reads filename as config, checks for DEST parameter and returns cfgfile object"""
|
"""reads filename as config, checks for DEST parameter and returns cfgfile object"""
|
||||||
try:
|
try:
|
||||||
ret = Conf(filename)
|
ret = Conf(filename=filename, debug=cfg.debug, force_filename=True)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
cfg.debug.stderr("Error reading config file %s" % filename)
|
cfg.debug.stderr("Error reading config file %s" % filename)
|
||||||
return False
|
return False
|
||||||
|
Reference in New Issue
Block a user