Let the convert-all task retry when pdf conversion fails

This commit is contained in:
Eike Kettner 2020-10-26 22:08:20 +01:00
parent b59696a9d3
commit ab1139523a

View File

@ -110,7 +110,7 @@ object PdfConvTask {
ctx.logger.warn(s"Unable to convert '${mime}' file ${ctx.args}: $reason")
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] =