mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-16 12:24:56 +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
|
return false
|
||||||
})
|
})
|
||||||
|
|
||||||
await zip.close()
|
await zip.close().catch((error) => {
|
||||||
|
Logger.error(`[parseEpubMetadata] Failed to close zip`, error)
|
||||||
|
})
|
||||||
|
|
||||||
return success
|
return success
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue