diff --git a/bgpranking/ranking.py b/bgpranking/ranking.py index 0277863..9a2c157 100644 --- a/bgpranking/ranking.py +++ b/bgpranking/ranking.py @@ -75,7 +75,7 @@ class Ranking(): def compute(self): self.logger.info('Start ranking') set_running(self.__class__.__name__) - if self.asn_meta.exists('v4|last', 'v6|last') != 2: + if self.asn_meta.exists('v4|last') and self.asn_meta.exists('v6|last'): '''Failsafe if asn_meta has not been populated yet''' unset_running(self.__class__.__name__) return