[fix] handling None return values e.g. for languages with no configs yet

This commit is contained in:
Al
2016-05-20 04:04:46 -04:00
parent 0c3dd33990
commit 985ba85623
6 changed files with 15 additions and 1 deletions

View File

@@ -116,7 +116,9 @@ class NumberedComponent(object):
@classmethod
def choose_alphanumeric_type(cls, key, language, country=None):
alphanumeric_props = address_config.get_property(key, language, country=country)
alphanumeric_props = address_config.get_property(key, language, country=country, default=None)
if alphanumeric_props is None:
return None, None
values = []
probs = []