Stricter exception check

This commit is contained in:
Mikael Nordfeldth 2016-02-10 04:43:30 +01:00
parent 733debd9b3
commit b9d35659c8

View File

@ -267,7 +267,7 @@ class OembedPlugin extends Plugin
// and File_thumbnail tables respectively. If not, we're not going to do anything. // and File_thumbnail tables respectively. If not, we're not going to do anything.
$file_oembed = File_oembed::getByFile($file); $file_oembed = File_oembed::getByFile($file);
$thumbnail = File_thumbnail::byFile($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. // Not Oembed data, or at least nothing we either can or want to use.
return true; return true;
} }