We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cccd161 commit 005de72Copy full SHA for 005de72
1 file changed
stdnum/vatin.py
@@ -66,12 +66,11 @@ def _get_cc_module(cc):
66
# Greece uses a "wrong" country code, special case for Northern Ireland
67
cc = cc.lower().replace('el', 'gr').replace('xi', 'gb')
68
if not _country_code_re.match(cc):
69
- raise ImportError('Wrong "{}" country code.'.format(cc))
+ raise ImportError()
70
if cc not in _country_modules:
71
_country_modules[cc] = get_cc_module(cc, 'vat')
72
if not _country_modules[cc]:
73
- raise ImportError('Missing validation for "{}" country code.'
74
- ''.format(cc))
75
return _country_modules[cc]
76
77
0 commit comments