Skip to content

Commit

Permalink
Update lib/neography/multi_json_parser.rb
Browse files Browse the repository at this point in the history
OJ complains about an ArgumentError, so rescuing that too.
  • Loading branch information
maxdemarzi committed Aug 7, 2012
1 parent 4c8fbb3 commit cda0b6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/neography/multi_json_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class MultiJsonParser < HTTParty::Parser
def json
begin
MultiJson.load(body)
rescue MultiJson::DecodeError
rescue MultiJson::DecodeError, ArgumentError
case
when body == "true"
true
Expand Down

0 comments on commit cda0b6e

Please sign in to comment.