Skip to content
Browse files

get rid of evil rescue Exception

  • Loading branch information...
1 parent dff6a16 commit 97dd03a8f13716881d54cd50418ae42cdde83ba0 @slumos committed
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/marketo/client.rb
View
10 lib/marketo/client.rb
@@ -108,7 +108,7 @@ def sync_lead_record(lead_record)
:lead_attribute_list => {
:attribute => attributes}}})
return LeadRecord.from_hash(response[:success_sync_lead][:result][:lead_record])
- rescue Exception => e
+ rescue => e
@logger.log(e) if @logger
return nil
end
@@ -135,7 +135,7 @@ def sync_multi_lead_records(lead_records)
:lead_record_list => send_records }) # an array of lead records
return response
- rescue Exception => e
+ rescue => e
@logger.log(e) if @logger
return @client.http
#return nil
@@ -168,7 +168,7 @@ def list_operation(list_key, list_operation_type, email)
}
})
return response
- rescue Exception => e
+ rescue => e
@logger.log(e) if @logger
return nil
end
@@ -178,7 +178,7 @@ def get_lead(lead_key)
begin
response = send_request("ns1:paramsGetLead", {:lead_key => lead_key.to_hash})
return LeadRecord.from_hash(response[:success_get_lead][:result][:lead_record_list][:lead_record])
- rescue Exception => e
+ rescue => e
@logger.log(e) if @logger
return nil
end
@@ -199,4 +199,4 @@ def request(namespace, body, header)
end
end
end
-end
+end

0 comments on commit 97dd03a

Please sign in to comment.
Something went wrong with that request. Please try again.