From: Andrew Dolgov Date: Tue, 31 Jul 2018 15:31:01 +0000 (+0300) Subject: use catchall exception handler for readability X-Git-Tag: 18.8~10 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c925f4e3fdad04442c5c2f542883dbd26c81cc23;p=tt-rss.git use catchall exception handler for readability --- diff --git a/plugins/af_readability/init.php b/plugins/af_readability/init.php index d1b16580..cccdf8af 100755 --- a/plugins/af_readability/init.php +++ b/plugins/af_readability/init.php @@ -196,7 +196,7 @@ class Af_Readability extends Plugin { return $r->getContent(); } - } catch (ParseException $e) { + } catch (Exception $e) { return false; } diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php index 4c9f6890..b4642867 100755 --- a/plugins/af_redditimgur/init.php +++ b/plugins/af_redditimgur/init.php @@ -547,7 +547,7 @@ class Af_RedditImgur extends Plugin { $article["content"] = $r->getContent() . "
" . $article["content"]; } - } catch (ParseException $e) { + } catch (Exception $e) { // } }