0
0
Fork 0

Fix up a few exceptions

This commit is contained in:
Eugen Rochko 2016-10-12 19:25:46 +02:00
parent f7f3e6e3be
commit c257b29d86
2 changed files with 11 additions and 4 deletions

View file

@ -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