Permalink
Browse files

don't crash if the totals.json cannot be read properly

  • Loading branch information...
szabgab committed Oct 21, 2014
1 parent 8e30804 commit 9e94ab0c84d229f6fd1a7db1d55c03480b2fb723
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/MetaCPAN/SCO.pm
View
@@ -56,7 +56,9 @@ sub template {
my $root = root();
$vars->{totals} = from_json path("$root/totals.json")->slurp_utf8;
eval {
$vars->{totals} = from_json path("$root/totals.json")->slurp_utf8;
};
my $tt = Template->new(
INCLUDE_PATH => "$root/tt",

0 comments on commit 9e94ab0

Please sign in to comment.