From 7bde1f7ec6f759c837ad92d6493fe0f5a80473eb Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 10 Apr 2016 10:37:16 +0530 Subject: [PATCH] Suppress intentional Exception log from self.reset(). --- buku | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buku b/buku index e5fe873..82200d3 100755 --- a/buku +++ b/buku @@ -256,7 +256,8 @@ def getTitleData(resp): else: parser.feed(data.decode(charset)) except Exception as e: - if debug: + if debug and str(e) != "we should not get here!": + # Suppress Exception due to intentional self.reset() in HTMLParser print("\x1b[1mEXCEPTION\x1b[21m [getTitleData]: (%s) %s" % (type(e).__name__, e))