diff options
author | Maksim Andrianov <maksimandrianov1@gmail.com> | 2019-04-19 16:45:43 +0300 |
---|---|---|
committer | Maksim Andrianov <maksimandrianov1@gmail.com> | 2019-05-06 17:09:48 +0300 |
commit | bc56c4166e795954f9a145c8265e187a4b484c6e (patch) | |
tree | 0f2b0168358897f006812a018c2d8c4fa9881828 /tools | |
parent | d17c7ed26bbf5a2c95124aeafd9305835c7cbd4f (diff) |
[python] Fixed except block.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/python/post_generation/hierarchy_to_countries.py | 2 |
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])) |