]> git.wh0rd.org Git - tt-rss.git/commitdiff
use catchall exception handler for readability
authorAndrew Dolgov <noreply@fakecake.org>
Tue, 31 Jul 2018 15:31:01 +0000 (18:31 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Tue, 31 Jul 2018 15:31:01 +0000 (18:31 +0300)
plugins/af_readability/init.php
plugins/af_redditimgur/init.php

index d1b165809ef9217076154406f3db011246b076a3..cccdf8af7da2b484b009eaaaa484f20ed3807ec1 100755 (executable)
@@ -196,7 +196,7 @@ class Af_Readability extends Plugin {
                                        return $r->getContent();
                                }
 
-                       } catch (ParseException $e) {
+                       } catch (Exception $e) {
                                return false;
                        }
 
index 4c9f689092e537fb52fdfa6565d4c54c07614967..b46428677e22a4a6cf177a8c95fae3a7054bd4c1 100755 (executable)
@@ -547,7 +547,7 @@ class Af_RedditImgur extends Plugin {
 
                                                                $article["content"] = $r->getContent() . "<hr/>" . $article["content"];
                                                        }
-                                               } catch (ParseException $e) {
+                                               } catch (Exception $e) {
                                                        //
                                                }
                                        }