From: Mikael Nordfeldth Date: Wed, 10 Feb 2016 03:43:30 +0000 (+0100) Subject: Stricter exception check X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b9d35659c832d51d431d8309528e4f6fc55998f2;p=quix0rs-gnu-social.git Stricter exception check --- diff --git a/plugins/Oembed/OembedPlugin.php b/plugins/Oembed/OembedPlugin.php index 361e4b54b8..c90f57439b 100644 --- a/plugins/Oembed/OembedPlugin.php +++ b/plugins/Oembed/OembedPlugin.php @@ -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; }