add rescue from Yajl::ParseError

This commit is contained in:
Alexander Machehin 2014-10-09 13:26:54 +06:00
parent cb4f9aeb44
commit fad1708318
1 changed files with 2 additions and 2 deletions

View File

@ -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