From 88353b75e0dddc15a15d3bee1622a6fb7b706be8 Mon Sep 17 00:00:00 2001 From: Al Date: Wed, 27 Jul 2016 19:14:30 -0400 Subject: [PATCH] [fix] more helpful error message if there are errors with the formatting config --- scripts/geodata/address_formatting/formatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/geodata/address_formatting/formatter.py b/scripts/geodata/address_formatting/formatter.py index eaef9ec2..16c33515 100644 --- a/scripts/geodata/address_formatting/formatter.py +++ b/scripts/geodata/address_formatting/formatter.py @@ -271,7 +271,7 @@ class AddressFormatter(object): elif 'first' in v: val = (self.FIRST, None) else: - raise ValueError('Insertions must contain one of {first, before, after, last}') + raise ValueError('Insertions must contain one of {{first, before, after, last}}. Value was: {}'.format(v)) prob = v['probability'] values.append(val)