fix: Mark ranking as done when db not ready

pull/12/head
Raphaël Vinot 2018-04-10 01:54:34 +02:00
parent 332a2aeed8
commit b60c70a3c5
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ class Ranking():
v6_last = self.asn_meta.get('v6|last')
if not v4_last or not v6_last:
'''Failsafe if asn_meta has not been populated yet'''
unset_running(self.__class__.__name__)
return
for source in self.storage.smembers(f'{today}|sources'):
self.logger.info(f'{today} - Ranking source: {source}')