From c925f4e3fdad04442c5c2f542883dbd26c81cc23 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 31 Jul 2018 18:31:01 +0300 Subject: [PATCH] use catchall exception handler for readability --- plugins/af_readability/init.php | 2 +- plugins/af_redditimgur/init.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) { // } } -- 2.39.5