Commit b9d35659 authored by mmn's avatar mmn

Stricter exception check

parent 733debd9
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment