]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Stricter exception check
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 10 Feb 2016 03:43:30 +0000 (04:43 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 10 Feb 2016 03:43:30 +0000 (04:43 +0100)
plugins/Oembed/OembedPlugin.php

index 361e4b54b863fc9bf68d264c4fbd6f1cbdabd507..c90f57439b3a2983ab9037ca43bce0e820603619 100644 (file)
@@ -267,7 +267,7 @@ class OembedPlugin extends Plugin
             // and File_thumbnail tables respectively. If not, we're not going to do anything.
             $file_oembed = File_oembed::getByFile($file);
             $thumbnail   = File_thumbnail::byFile($file);
-        } catch (Exception $e) {
+        } catch (NoResultException $e) {
             // Not Oembed data, or at least nothing we either can or want to use.
             return true;
         }