InvalidCountryCode: Unknown country-code 'CG'
Closed this issue · 1 comments
jakubczaplicki commented
Republic of the Congo
is not defined in the IBAN spec registry:
def _get_iban_spec(country_code: str) -> dict:
try:
spec = registry.get("iban")
assert isinstance(spec, dict)
return spec[country_code]
except KeyError:
raise exceptions.InvalidCountryCode(f"Unknown country-code '{country_code}'")
raises InvalidCountryCode: Unknown country-code 'CG'
mdomke commented
Many of the "aspirational" SWIFT countries have been added in release 2024.1.1.post0
. Thanks for reporting!