From 2f3fabe495d611c0d4433d4eb9bcd68fa3040d79 Mon Sep 17 00:00:00 2001 From: Daniel Boos Date: Mon, 20 Aug 2018 17:30:49 -0400 Subject: [PATCH] Extra fix for build_legal_entity_booleans_dict to handle Nones --- usaspending_api/broker/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usaspending_api/broker/helpers.py b/usaspending_api/broker/helpers.py index cddada9f62..2a711ecd81 100644 --- a/usaspending_api/broker/helpers.py +++ b/usaspending_api/broker/helpers.py @@ -91,7 +91,7 @@ def build_legal_entity_booleans_dict(row): 'other_not_for_profit_organ', 'us_local_government' ] - return {le_col: bool(strtobool(row.get(le_col, 'false'))) for le_col in le_cols} + return {le_col: bool(strtobool(row.get(le_col, 'false') or 'false')) for le_col in le_cols} def get_award_category(award_type_code):