From fad1708318dadecaedf923f571a30ca954a90e4c Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Thu, 9 Oct 2014 13:26:54 +0600 Subject: [PATCH] add rescue from Yajl::ParseError --- app/helpers/git_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/git_helper.rb b/app/helpers/git_helper.rb index 87baed4bd..e975dca75 100644 --- a/app/helpers/git_helper.rb +++ b/app/helpers/git_helper.rb @@ -111,7 +111,7 @@ module GitHelper else blob.colorize end.html_safe - rescue MentosError => e + rescue MentosError, Yajl::ParseError => e blob.data.html_safe end @@ -122,7 +122,7 @@ module GitHelper else blob.lexer.highlight text end.html_safe - rescue MentosError => e + rescue MentosError, Yajl::ParseError => e text.html_safe end end