From a40d0f02b6dacec2306126af2b38350b34902a3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Fri, 28 Sep 2018 09:48:59 -0400 Subject: [PATCH] fix: Add catchall for list impact --- bgpranking/shadowserverfetcher.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bgpranking/shadowserverfetcher.py b/bgpranking/shadowserverfetcher.py index 02bf928..7370d6f 100644 --- a/bgpranking/shadowserverfetcher.py +++ b/bgpranking/shadowserverfetcher.py @@ -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: