Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDaria Volvenkova <d.volvenkova@corp.mail.ru>2017-11-29 17:32:25 +0300
committerRoman Kuznetsov <r.kuznetsow@gmail.com>2017-11-29 17:40:11 +0300
commit02f15cd105553c16f8745b16f73a6d070c6b3a7c (patch)
tree178bc2ded17681cdc56ab9bf053ec8cbe84fdd71 /tools
parentb911c4f74c736e89bf98ef1a77e841506c916254 (diff)
Fixed processing of 'null' color value.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/python/transit/transit_graph_generator.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/python/transit/transit_graph_generator.py b/tools/python/transit/transit_graph_generator.py
index acf6091416..f9ddfe769f 100755
--- a/tools/python/transit/transit_graph_generator.py
+++ b/tools/python/transit/transit_graph_generator.py
@@ -203,8 +203,10 @@ class TransitGraphBuilder:
line_index += 1
def __match_color(self, color_str, casing_str):
- if len(color_str) == 0:
+ if color_str is None or len(color_str) == 0:
return self.palette.get_default_color()
+ if casing_str is None:
+ casing_str = ''
matched_colors_key = color_str + "/" + casing_str
if matched_colors_key in self.matched_colors:
return self.matched_colors[matched_colors_key]