From 770f18ac50f1603b6f81794acb30065ab077f80f Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Fri, 2 Mar 2012 19:42:28 +0300 Subject: [PATCH] Prevent Application from crash cause of charloc_cholmes error --- config/initializers/gitlabhq/20_grit_ext.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/initializers/gitlabhq/20_grit_ext.rb b/config/initializers/gitlabhq/20_grit_ext.rb index d9f2c001..a8c97b10 100644 --- a/config/initializers/gitlabhq/20_grit_ext.rb +++ b/config/initializers/gitlabhq/20_grit_ext.rb @@ -11,6 +11,9 @@ end Grit::GitRuby::Internal::RawObject.class_eval do def content transcoding(@content) + rescue Exception => ex + Rails.logger.error ex.message + @content end private