Commit b6159c24 authored by Stan Hu's avatar Stan Hu

Handle empty arguments case

parent 445dba15
......@@ -24,7 +24,7 @@ class MarketoTools < Sinatra::Base
params = {}
if params['event_name'] == 'user_create'
if params && params['event_name'] == 'user_create'
user =
client.createupdate_leads([user.to_param], lookup_field: :email)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment