Fix up a few exceptions
This commit is contained in:
parent
f7f3e6e3be
commit
c257b29d86
2 changed files with 11 additions and 4 deletions
|
@ -19,6 +19,8 @@ class FetchRemoteAccountService < BaseService
|
|||
Rails.logger.debug "Going to webfinger #{username}@#{domain}"
|
||||
|
||||
return FollowRemoteAccountService.new.call("#{username}@#{domain}")
|
||||
rescue TypeError => e
|
||||
Rails.logger.debug "Unparseable URL given: #{url}"
|
||||
rescue Nokogiri::XML::XPath::SyntaxError
|
||||
Rails.logger.debug "Invalid XML or missing namespace"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue