Minor relations fix (issue #1).

This commit is contained in:
Sergey Vartanov 2015-09-10 12:01:27 +03:00
parent a88c708878
commit 5b10e90e09
2 changed files with 1 additions and 1 deletions

View file

@ -423,7 +423,7 @@ def construct_relations(drawing):
for relation_id in relation_map:
relation = relation_map[relation_id]
tags = relation['tags']
if tags['type'] == 'multipolygon':
if 'type' in tags and tags['type'] == 'multipolygon':
style = 'fill:#FFEEEE;stroke:#FF0000;stroke-width:0.5;'
inners, outers = [], []
for member in relation['members']: