diff options
Diffstat (limited to 'stdnum/gb/nhs.py')
-rw-r--r-- | stdnum/gb/nhs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stdnum/gb/nhs.py b/stdnum/gb/nhs.py index 3460010..65e07c7 100644 --- a/stdnum/gb/nhs.py +++ b/stdnum/gb/nhs.py @@ -42,7 +42,7 @@ InvalidChecksum: ... """ from stdnum.exceptions import * -from stdnum.util import clean +from stdnum.util import clean, isdigits def compact(number): @@ -61,7 +61,7 @@ def validate(number): """Check if the number is valid. This checks the length and check digit.""" number = compact(number) - if not number.isdigit(): + if not isdigits(number): raise InvalidFormat() if len(number) != 10: raise InvalidLength() |