diff --git a/lib/Foswiki/Contrib/StringifierContrib/Plugins/XLSX.pm b/lib/Foswiki/Contrib/StringifierContrib/Plugins/XLSX.pm index 3d7b340..8d9a8e3 100755 --- a/lib/Foswiki/Contrib/StringifierContrib/Plugins/XLSX.pm +++ b/lib/Foswiki/Contrib/StringifierContrib/Plugins/XLSX.pm @@ -30,16 +30,9 @@ sub stringForFile { try { require Spreadsheet::XLSX; + $book = Spreadsheet::XLSX->new($file); } catch Error with { return ''; - } - - try { - $book = Spreadsheet::XLSX->new($file); - } - catch Error with { - # file not opened, possibly passworded - return ''; }; return '' unless $book;