Skip to content

Commit cec724b

Browse files
committed
Fix too opinionated validation of ISBN-13 code starting with 979
1 parent f718168 commit cec724b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

barcode/isxn.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ def __init__(
5353
self.isbn13 = isbn
5454
if isbn[:3] not in ("978", "979"):
5555
raise WrongCountryCodeError("ISBN must start with 978 or 979.")
56-
if isbn[:3] == "979" and isbn[3:4] not in ("1", "8"):
57-
raise BarcodeError("ISBN must start with 97910 or 97911.")
5856
super().__init__(isbn, writer, no_checksum, guardbar, addon)
5957

6058

0 commit comments

Comments
 (0)