mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-14 11:25:02 +02:00
Fix server crash on failed to extract epub image #3889
This commit is contained in:
parent
c735fea8ba
commit
d4ba8b9d9f
1 changed files with 3 additions and 1 deletions
|
@ -56,7 +56,9 @@ async function extractCoverImage(epubPath, epubImageFilepath, outputCoverPath) {
|
|||
return false
|
||||
})
|
||||
|
||||
await zip.close()
|
||||
await zip.close().catch((error) => {
|
||||
Logger.error(`[parseEpubMetadata] Failed to close zip`, error)
|
||||
})
|
||||
|
||||
return success
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue