From dc74c8e5770a1b1df02a001e5c8ffd5cf1325252 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Tue, 14 Oct 2008 23:55:46 +0200 Subject: [PATCH] po plugin: do not trust po4a functions return value Signed-off-by: intrigeri --- IkiWiki/Plugin/po.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 900ca90e4..42391089b 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -105,7 +105,7 @@ sub refreshpot ($) { #{{{ $doc->{TT}{utf_mode} = 1; $doc->{TT}{file_in_charset} = 'utf-8'; $doc->{TT}{file_out_charset} = 'utf-8'; - $doc->parse or error("[po/refreshpot:$masterfile]: failed to parse"); + $doc->parse; $doc->writepo($potfile); } #}}} -- 2.39.5