Skip to content

Commit

Permalink
Avoid crashing if the value is ""
Browse files Browse the repository at this point in the history
  • Loading branch information
Famlam authored and frodrigo committed Jan 1, 2025
1 parent 547cba8 commit da20bb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/TagFix_Maxspeed.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def init(self, logger):

def way(self, data, tags, nds):
err = []
maxspeed_tags = list(filter(lambda t: t.startswith('maxspeed') and tags[t][0] in "0123456789", tags))
maxspeed_tags = list(filter(lambda t: t.startswith('maxspeed') and tags[t] and tags[t][0] in "0123456789", tags))

# Check that maxspeed:advisory/practical <= maxspeed
for t in maxspeed_tags:
Expand Down

0 comments on commit da20bb3

Please sign in to comment.