Skip to content

Commit 005de72

Browse files
committed
wip
1 parent cccd161 commit 005de72

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

stdnum/vatin.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,11 @@ def _get_cc_module(cc):
6666
# Greece uses a "wrong" country code, special case for Northern Ireland
6767
cc = cc.lower().replace('el', 'gr').replace('xi', 'gb')
6868
if not _country_code_re.match(cc):
69-
raise ImportError('Wrong "{}" country code.'.format(cc))
69+
raise ImportError()
7070
if cc not in _country_modules:
7171
_country_modules[cc] = get_cc_module(cc, 'vat')
7272
if not _country_modules[cc]:
73-
raise ImportError('Missing validation for "{}" country code.'
74-
''.format(cc))
73+
raise ImportError()
7574
return _country_modules[cc]
7675

7776

0 commit comments

Comments
 (0)