fix: Add catchall for list impact

pull/12/head
Raphaël Vinot 2018-09-28 09:48:59 -04:00
parent 48d9934923
commit a40d0f02b6
1 changed files with 3 additions and 0 deletions

View File

@ -119,6 +119,9 @@ class ShadowServerFetcher():
config['impact'] = 2
elif main_type == 'sinkhole':
config['impact'] = 2
else:
config['impact'] = 1
if not (self.config_path_modules / f"{config['vendor']}_{config['name']}.json").exists():
self.logger.debug(f'Creating config file for {filename}.')
with open(self.config_path_modules / f"{config['vendor']}_{config['name']}.json", 'w') as f: