show warning about no entries found
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
3c5343e977
commit
5d9e59ef61
5
main.py
5
main.py
|
@ -75,7 +75,10 @@ def main():
|
||||||
LOG.debug('Skipping incomplete current day.')
|
LOG.debug('Skipping incomplete current day.')
|
||||||
continue
|
continue
|
||||||
LOG.info('Index: {}'.format(index))
|
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:
|
if len(peers) == 0:
|
||||||
LOG.info('Nothing to insert into database.')
|
LOG.info('Nothing to insert into database.')
|
||||||
|
|
Loading…
Reference in New Issue