show warning about no entries found

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-07-14 12:15:14 +02:00
parent 3c5343e977
commit 5d9e59ef61
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 4 additions and 1 deletions

View File

@ -75,7 +75,10 @@ def main():
LOG.debug('Skipping incomplete current day.')
continue
LOG.info('Index: {}'.format(index))
peers.extend(esq.get_peers(index, opts.field, opts.max_size))
rval = esq.get_peers(index, opts.field, opts.max_size)
if len(rval) == 0:
LOG.warning('No entries found!')
peers.extend(rval)
if len(peers) == 0:
LOG.info('Nothing to insert into database.')