From 0e5b516b3c8897284b6b0560a860bde29e7eb72e Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 29 Jul 2022 17:43:13 -0700 Subject: database: work around annoying ISSN-L column issue --- chocula/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chocula') diff --git a/chocula/database.py b/chocula/database.py index 3840ae3..d4b7a03 100644 --- a/chocula/database.py +++ b/chocula/database.py @@ -206,7 +206,7 @@ class IssnDatabase: print("##### Loading ISSN-L map file...", file=sys.stderr) with open(issn_map_path, "r") as issn_map_file: for line in issn_map_file: - if line.startswith("ISSN") or len(line) == 0: + if line.startswith("ISSN") or len(line) == 0 or len(line.split()) < 2: continue (issn, issnl) = line.split()[0:2] self.issn_issnl_map[issn] = issnl -- cgit v1.2.3