about summary refs log tree commit diff
diff options
context:
space:
mode:
authormasarakki <masaki182@gmail.com>2017-05-08 02:00:40 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-05-07 19:00:40 +0200
commit267ed3d74b17f9f535d434ea2979521b91d08174 (patch)
tree123983dd569ecbbb056335964d880c3fb2586afe
parentd3704fdb09d79279c8dfde591087aa723af29891 (diff)
raise-when-oembed-not-found (#2882)
-rw-r--r--app/lib/provider_discovery.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/lib/provider_discovery.rb b/app/lib/provider_discovery.rb
index abd98f3aa..3d0712a5c 100644
--- a/app/lib/provider_discovery.rb
+++ b/app/lib/provider_discovery.rb
@@ -22,6 +22,7 @@ class ProviderDiscovery < OEmbed::ProviderDiscovery
         format ||= :xml if provider_endpoint
       end
 
+      raise OEmbed::NotFound, url if provider_endpoint.nil?
       begin
         provider_endpoint = Addressable::URI.parse(provider_endpoint)
         provider_endpoint.query = nil