diff options
-rw-r--r-- | chocula/database.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |