[Groonga-commit] droonga/droonga-engine at ed56f07 [master] Ignore only JSON::ParseError

Zurück zum Archiv-Index

YUKI Hiroshi null+****@clear*****
Thu May 8 16:57:31 JST 2014


YUKI Hiroshi	2014-05-08 16:57:31 +0900 (Thu, 08 May 2014)

  New Revision: ed56f079f429fe7d8942cd695ff548af38aa3c8f
  https://github.com/droonga/droonga-engine/commit/ed56f079f429fe7d8942cd695ff548af38aa3c8f

  Message:
    Ignore only JSON::ParseError

  Modified files:
    lib/droonga/serf_event_handler.rb

  Modified: lib/droonga/serf_event_handler.rb (+1 -1)
===================================================================
--- lib/droonga/serf_event_handler.rb    2014-05-08 16:56:39 +0900 (a887273)
+++ lib/droonga/serf_event_handler.rb    2014-05-08 16:57:31 +0900 (f13db14)
@@ -77,7 +77,7 @@ module Droonga
         nodes = JSON.parse(contents) if contents and not contents.empty?
       end
       nodes
-    rescue StandardError, LoadError, SyntaxError => error
+    rescue JSON::ParserError
       {}
     end
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index