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:
authorMaksim Andrianov <maksimandrianov1@gmail.com>2019-04-19 16:45:43 +0300
committerMaksim Andrianov <maksimandrianov1@gmail.com>2019-05-06 17:09:48 +0300
commitbc56c4166e795954f9a145c8265e187a4b484c6e (patch)
tree0f2b0168358897f006812a018c2d8c4fa9881828 /tools
parentd17c7ed26bbf5a2c95124aeafd9305835c7cbd4f (diff)
[python] Fixed except block.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/python/post_generation/hierarchy_to_countries.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python/post_generation/hierarchy_to_countries.py b/tools/python/post_generation/hierarchy_to_countries.py
index e1a0b80ffa..0e9958669b 100755
--- a/tools/python/post_generation/hierarchy_to_countries.py
+++ b/tools/python/post_generation/hierarchy_to_countries.py
@@ -150,7 +150,7 @@ if options.names:
if len(pair) == 2 and pair[0] != pair[1]:
try:
names[pair[0]] = pair[1]
- except Error:
+ except (KeyError, IndexError):
sys.stderr.write(
'Could not read translation for {0}\n'.format(pair[0]))