From f203d8d4e622012ca17f5a453eb845478a4a12cd Mon Sep 17 00:00:00 2001 From: Famlam Date: Wed, 1 Jan 2025 00:48:29 +0100 Subject: [PATCH] Avoid crashing if the value is "" --- plugins/TagFix_Maxspeed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/TagFix_Maxspeed.py b/plugins/TagFix_Maxspeed.py index bdddd449b..1e597233d 100644 --- a/plugins/TagFix_Maxspeed.py +++ b/plugins/TagFix_Maxspeed.py @@ -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: