From 8c8212578838ce2a34bd6d292c81f2a888d7bfbe Mon Sep 17 00:00:00 2001 From: Al Date: Thu, 5 May 2016 14:17:49 -0400 Subject: [PATCH] [fix] defaults --- scripts/geodata/states/state_abbreviations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/geodata/states/state_abbreviations.py b/scripts/geodata/states/state_abbreviations.py index 14f4740f..5c5a6f39 100644 --- a/scripts/geodata/states/state_abbreviations.py +++ b/scripts/geodata/states/state_abbreviations.py @@ -40,13 +40,13 @@ class StateAbbreviations(object): def get_abbreviation(self, country, language, state, default=None): value = nested_get(self.abbreviations, (country.lower(), state.lower(), language.lower())) if value is DoesNotExist: - return None + return default return value def get_full_name(self, country, language, state, default=None): value = nested_get(self.full_names, (country.lower(), state.lower(), language.lower())) if value is DoesNotExist: - return None + return default return value