mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-06 15:15:58 +00:00
Let the convert-all task retry when pdf conversion fails
This commit is contained in:
parent
b59696a9d3
commit
ab1139523a
@ -110,7 +110,7 @@ object PdfConvTask {
|
|||||||
ctx.logger.warn(s"Unable to convert '${mime}' file ${ctx.args}: $reason")
|
ctx.logger.warn(s"Unable to convert '${mime}' file ${ctx.args}: $reason")
|
||||||
|
|
||||||
case ConversionResult.Failure(ex) =>
|
case ConversionResult.Failure(ex) =>
|
||||||
ctx.logger.error(ex)(s"Failure converting file ${ctx.args}: ${ex.getMessage}")
|
Sync[F].raiseError(ex)
|
||||||
})
|
})
|
||||||
|
|
||||||
def ocrMyPdf(lang: Language): F[Unit] =
|
def ocrMyPdf(lang: Language): F[Unit] =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user