add rescue from Yajl::ParseError
This commit is contained in:
parent
cb4f9aeb44
commit
fad1708318
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue