Fix catch exception on failed to parse comic metadata #3804

This commit is contained in:
advplyr 2025-01-08 16:53:56 -06:00
parent 05ff5f1956
commit 02ecf7ccfe
2 changed files with 11 additions and 3 deletions

View file

@ -189,8 +189,14 @@ class CbzStreamZipComicBookExtractor extends AbstractComicBookExtractor {
}
close() {
this.archive?.close()
Logger.debug(`[CbzStreamZipComicBookExtractor] Closed comic book "${this.comicPath}"`)
this.archive
?.close()
.then(() => {
Logger.debug(`[CbzStreamZipComicBookExtractor] Closed comic book "${this.comicPath}"`)
})
.catch((error) => {
Logger.error(`[CbzStreamZipComicBookExtractor] Failed to close comic book "${this.comicPath}"`, error)
})
}
}