Skip to content

Commit 746b731

Browse files
committed
Changed code to allow comments if only source:maxspeed is set, as per osmose-qa#2506 (comment)
1 parent 84b1878 commit 746b731

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/TagFix_Maxspeed_AT.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def way(self, data, tags, nds):
173173
# Error: source:maxspeed is invalid
174174
if source_maxspeed in self.valid_maxspeed_types.keys():
175175
valid_type = source_maxspeed
176-
else:
176+
elif source_maxspeed.startswith('AT:') or source_maxspeed in {'zone', 'walk'}:
177177
err.append({'class': 4,
178178
'text': T_('Invalid source:maxspeed: `{0}`', source_maxspeed)})
179179

0 commit comments

Comments
 (0)