From b9d35659c832d51d431d8309528e4f6fc55998f2 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 10 Feb 2016 04:43:30 +0100 Subject: [PATCH] Stricter exception check --- plugins/Oembed/OembedPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }