diff --git a/ceurws/ceur_ws.py b/ceurws/ceur_ws.py index eb7a5f0..5f97b0a 100644 --- a/ceurws/ceur_ws.py +++ b/ceurws/ceur_ws.py @@ -404,11 +404,12 @@ def recreate(self, progress: bool = False, limit=None): invalid += 1 else: loctime=volume.get_loctime() - loc_time_dict=loctime_parser.parse(loctime) - for key,value in loc_time_dict.items(): - attr=f"loc_{key}" - setattr(volume,attr,value) - volume.resolveLoctime() + if loctime: + loc_time_dict=loctime_parser.parse(loctime) + for key,value in loc_time_dict.items(): + attr=f"loc_{key}" + setattr(volume,attr,value) + volume.resolveLoctime() # update progress bar if t is not None and volume.valid: # print(f"{volume.url}:{volume.acronym}:{volume.desc}:{volume.h1}:{volume.title}") diff --git a/ceurws/indexparser.py b/ceurws/indexparser.py index 15243d0..46305c2 100644 --- a/ceurws/indexparser.py +++ b/ceurws/indexparser.py @@ -92,7 +92,7 @@ def findVolume(self, volCount: int, startLine: int, expectedTr: int = 3, progres if trCount == expectedTr: trEndLine = self.find(lineNo + 1, self.trEndPattern) if volCount % progress == 0: - print(f"Volume {volCount+1:4}: lines {trStartLine:6}-{trEndLine:6}") + print(f"volume count {volCount+1:4}: lines {trStartLine:6}-{trEndLine:6}") return trStartLine, trEndLine return None, None