Commit 01df5344 authored by Marius Kriegerowski's avatar Marius Kriegerowski
Browse files

catch empty results

parent 212b25cf
include rules/gem_occupancy/data/*.csv
include rabotnikobm/rules/gem_occupancy/data/*.csv
include LICENSE
......@@ -130,6 +130,10 @@ class GetBuildingOccupancy(Rule):
f"SELECT tags FROM osm_building_relations WHERE osm_id={building_id} AND index=0"
)
logger.debug(f"working on tags: {tags}")
if not tags:
return
# Mapping to GEM taxonomy strings
occupancies = []
for mapper in self.mappers:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment