From 6dcfc2ae15d8275b07853a0ad0b9ffaaab19d5b5 Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Fri, 1 Jul 2022 12:51:41 -0400 Subject: [PATCH] Let's trying raising exceptions from readability not working, and catching them upstream. --- vendor/readability/readability.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/vendor/readability/readability.py b/vendor/readability/readability.py index d3f9968de..93948fe64 100755 --- a/vendor/readability/readability.py +++ b/vendor/readability/readability.py @@ -260,12 +260,13 @@ class Document: else: return cleaned_article except Exception as e: - log.exception("error getting summary: ") - if sys.version_info[0] == 2: - from .compat.two import raise_with_traceback - else: - from .compat.three import raise_with_traceback - raise_with_traceback(Unparseable, sys.exc_info()[2], str_(e)) + # log.exception("error getting summary: ") + # if sys.version_info[0] == 2: + # from .compat.two import raise_with_traceback + # else: + # from .compat.three import raise_with_traceback + # raise_with_traceback(Unparseable, sys.exc_info()[2], str_(e)) + raise e def get_article(self, candidates, best_candidate, html_partial=False): # Now that we have the top candidate, look through its siblings for