diff --git a/phonenumber_field/formfields.py b/phonenumber_field/formfields.py index e151c03c..1cac90fe 100644 --- a/phonenumber_field/formfields.py +++ b/phonenumber_field/formfields.py @@ -47,8 +47,8 @@ def prepare_value(self, value): phone_region_codes = phonenumbers.data._COUNTRY_CODE_TO_REGION_CODE[ phone_number.country_code ] - except KeyError: - pass + except KeyError as error: + print(error) else: if self.region in phone_region_codes: value = phone_number.as_national