action_kit_api 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/action_kit_api/searchable.rb +6 -2
- data/lib/action_kit_api/version.rb +1 -1
- metadata +2 -2
@@ -26,8 +26,12 @@ module ActionKitApi
|
|
26
26
|
|
27
27
|
begin
|
28
28
|
response = ActionKitApi::Connection.call("#{class_name}.get", search)
|
29
|
-
rescue
|
30
|
-
|
29
|
+
rescue XMLRPC::FaultException => exception
|
30
|
+
if exception.faultCode == "DoesNotExist"
|
31
|
+
return nil
|
32
|
+
else
|
33
|
+
raise exception
|
34
|
+
end
|
31
35
|
end
|
32
36
|
|
33
37
|
# Build a new object with the response, this might be an empty
|