Skip to content
Snippets Groups Projects
Commit 0759c0ef authored by Alessandro Cerioni's avatar Alessandro Cerioni
Browse files

Handling the case in which a table is empty.

parent 0999c390
No related branches found
No related tags found
No related merge requests found
...@@ -210,6 +210,10 @@ def enrich_docs( channel, method, properties, body, **kwargs ): ...@@ -210,6 +210,10 @@ def enrich_docs( channel, method, properties, body, **kwargs ):
#if feature_page != None: #if feature_page != None:
#print('here') #print('here')
for feature_page in get_entries_from_postgis(wfs_info, kwargs['postgis_cfg']): for feature_page in get_entries_from_postgis(wfs_info, kwargs['postgis_cfg']):
if len(feature_page) == 0:
logging.debug('Empty page!')
continue
#print('here') #print('here')
logging.info('Sending feature page of len = %i to RabbitMQ...' % len(feature_page)) logging.info('Sending feature page of len = %i to RabbitMQ...' % len(feature_page))
# for el in feature_page: # for el in feature_page:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment