fixed : Value 'config' is unsubscriptable

This commit is contained in:
Klaus Zerwes 2022-08-08 20:48:48 +02:00
parent 743346f516
commit 94f081ad5d

View File

@ -187,11 +187,11 @@ config = False
if args.config:
try:
with open(args.config) as ymlfile:
config = yaml.load(ymlfile, Loader=yaml.BaseLoader)
_config = yaml.load(ymlfile, Loader=yaml.BaseLoader)
except FileNotFoundError:
pass
if config and 'exclude_paths' in config.keys():
for ep in config['exclude_paths']:
if _config and 'exclude_paths' in _config.keys():
for ep in _config['exclude_paths']:
exclude_paths.append(os.path.abspath(ep))
# find files to parse