Prevent Application from crash cause of charloc_cholmes error
This commit is contained in:
parent
b603e0dc45
commit
770f18ac50
1 changed files with 3 additions and 0 deletions
|
@ -11,6 +11,9 @@ end
|
||||||
Grit::GitRuby::Internal::RawObject.class_eval do
|
Grit::GitRuby::Internal::RawObject.class_eval do
|
||||||
def content
|
def content
|
||||||
transcoding(@content)
|
transcoding(@content)
|
||||||
|
rescue Exception => ex
|
||||||
|
Rails.logger.error ex.message
|
||||||
|
@content
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in a new issue