diff --git a/bgpranking/shadowserverfetcher.py b/bgpranking/shadowserverfetcher.py index 043b80a..9fe0c99 100644 --- a/bgpranking/shadowserverfetcher.py +++ b/bgpranking/shadowserverfetcher.py @@ -89,7 +89,10 @@ class ShadowServerFetcher(): prefix = type_content.split('.')[0] config['name'] = '{}-{}'.format(prefix, '_'.join(type_details)) - main_type = type_details[0] + if isinstance(type_details, str): + main_type = type_details + else: + main_type = type_details[0] if main_type not in self.known_list_types: self.logger.warning(f'Unknown type: {main_type}. Please update the config creator script.') return None