diff --git a/main.py b/main.py index 7ff15b4..3a43da0 100755 --- a/main.py +++ b/main.py @@ -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.')