do no return in em-webfinger, causeing weird splunk errors
This commit is contained in:
parent
fce428826c
commit
4c25724573
1 changed files with 17 additions and 14 deletions
|
|
@ -72,9 +72,7 @@ class EMWebfinger
|
||||||
|
|
||||||
begin
|
begin
|
||||||
wf_profile = WebfingerProfile.new(@account, webfinger_profile)
|
wf_profile = WebfingerProfile.new(@account, webfinger_profile)
|
||||||
rescue
|
|
||||||
return process_callbacks "No person could be constructed from this webfinger profile."
|
|
||||||
end
|
|
||||||
|
|
||||||
http = EventMachine::HttpRequest.new(wf_profile.hcard).get OPTS
|
http = EventMachine::HttpRequest.new(wf_profile.hcard).get OPTS
|
||||||
http.callback{
|
http.callback{
|
||||||
|
|
@ -86,7 +84,12 @@ class EMWebfinger
|
||||||
process_callbacks I18n.t 'webfinger.no_person_constructed'
|
process_callbacks I18n.t 'webfinger.no_person_constructed'
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
http.errback{process_callbacks I18n.t('webfinger.hcard_fetch_failed', :account => @account) }
|
http.errback{
|
||||||
|
process_callbacks I18n.t('webfinger.hcard_fetch_failed', :account => @account) }
|
||||||
|
|
||||||
|
rescue
|
||||||
|
process_callbacks "No person could be constructed from this webfinger profile."
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue