fix config handling if no exclude_paths defined

This commit is contained in:
Klaus Zerwes 2022-08-08 19:49:01 +02:00
parent bd50dd14c8
commit 48449934ef

View File

@ -187,7 +187,7 @@ if args.config:
config = yaml.load(ymlfile, Loader=yaml.BaseLoader)
except FileNotFoundError:
pass
if config and config['exclude_paths']:
if config and 'exclude_paths' in config.keys():
for ep in config['exclude_paths']:
exclude_paths.append(os.path.abspath(ep))