X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Foutput%2FText.java;h=4a45e5430fba9465b1e92a590bcae9cc18b28360;hb=13fdb89adc017452a7a72f552b933f8e7b869413;hp=b45a51284bf913501bb0fa7fefd4c12a371c8bc8;hpb=16a81ef7656c5c692fb831927e75edde25dd77a0;p=fanfix.git diff --git a/src/be/nikiroo/fanfix/output/Text.java b/src/be/nikiroo/fanfix/output/Text.java index b45a512..4a45e54 100644 --- a/src/be/nikiroo/fanfix/output/Text.java +++ b/src/be/nikiroo/fanfix/output/Text.java @@ -105,8 +105,13 @@ class Text extends BasicOutput { protected void writeParagraphHeader(Paragraph para) throws IOException { if (para.getType() == ParagraphType.IMAGE) { File file = new File(targetDir, getCurrentImageBestName(true)); - Instance.getCache().saveAsImage(para.getContentImage(), file, - nextParaIsCover); + try { + Instance.getCache().saveAsImage(para.getContentImage(), file, + nextParaIsCover); + } catch (IOException e) { + Instance.getTraceHandler().error( + new IOException("Cannot save an image", e)); + } } nextParaIsCover = false;