Browse Source

use catchall exception handler for readability

Andrew Dolgov 1 year ago
parent
commit
c925f4e3fd
2 changed files with 2 additions and 2 deletions
  1. 1 1
      plugins/af_readability/init.php
  2. 1 1
      plugins/af_redditimgur/init.php

+ 1 - 1
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;
 			}
 

+ 1 - 1
plugins/af_redditimgur/init.php

@@ -547,7 +547,7 @@ class Af_RedditImgur extends Plugin {
 
 								$article["content"] = $r->getContent() . "<hr/>" . $article["content"];
 							}
-						} catch (ParseException $e) {
+						} catch (Exception $e) {
 							//
 						}
 					}