Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.1
translate-toolkit
pycountry.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pycountry.patch of Package translate-toolkit
From 29170edbc67dfdf5819b689fc64fd498281f4bf0 Mon Sep 17 00:00:00 2001 From: Vinyl Darkscratch <vinyldarkscratch@gmail.com> Date: Mon, 17 Dec 2018 23:36:32 -0800 Subject: [PATCH] Update exceptions for newer PyCountry version --- translate/lang/data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/translate/lang/data.py b/translate/lang/data.py index b89af385f..d2085bd45 100644 --- a/translate/lang/data.py +++ b/translate/lang/data.py @@ -595,7 +595,7 @@ def get_country_iso_name(country_code): if hasattr(country, 'common_name'): return country.common_name return country.name - except KeyError: + except (KeyError, AttributeError): return u"" @@ -609,7 +609,7 @@ def get_language_iso_name(language_code): if hasattr(language, 'common_name'): return language.common_name return language.name - except KeyError: + except (KeyError, AttributeError): return u""
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor