From d5af8e91a9161a9d892b4a8af3b6b806102526b5 Mon Sep 17 00:00:00 2001 From: George Alegre Date: Tue, 13 Dec 2016 19:00:46 -0300 Subject: [PATCH] No more stderr logging, only raising exception. --- readability/readability.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/readability/readability.py b/readability/readability.py index 8331e27..d000a06 100755 --- a/readability/readability.py +++ b/readability/readability.py @@ -217,12 +217,7 @@ 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)) + raise Unparseable(e) def get_article(self, candidates, best_candidate, html_partial=False): # Now that we have the top candidate, look through its siblings for