Suspension temporaire des checksums invalides

This commit is contained in:
Yohann D'ANELLO 2020-02-20 17:32:50 +01:00
parent 4c55bdd200
commit 10417242f4
1 changed files with 2 additions and 2 deletions

View File

@ -21,8 +21,8 @@ def isbn_validator(raw_isbn):
if len(isbn_to_check) != 10 and len(isbn_to_check) != 13:
raise ValidationError(_('Invalid ISBN: Wrong length'))
if not isbn.is_valid(isbn_to_check):
raise ValidationError(_('Invalid ISBN: Failed checksum'))
#if not isbn.is_valid(isbn_to_check):
# raise ValidationError(_('Invalid ISBN: Failed checksum'))
if isbn_to_check != isbn_to_check.upper():
raise ValidationError(_('Invalid ISBN: Only upper case allowed'))