From 9c8a299a6054e40edca4b9ccafdf7b5c98767f76 Mon Sep 17 00:00:00 2001 From: Ellis Date: Mon, 17 Sep 2018 13:21:54 -0400 Subject: [PATCH] Removed unused variable and updated url function call --- qutebrowser/browser/adblock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qutebrowser/browser/adblock.py b/qutebrowser/browser/adblock.py index f919424f8..8c8a544bf 100644 --- a/qutebrowser/browser/adblock.py +++ b/qutebrowser/browser/adblock.py @@ -70,8 +70,8 @@ def is_whitelisted_host(url): try: if pattern.matches(url): return True - except urlmatch.ParseError as p_error: - log.misc.exception("Unable to read UrlPattern: " + UrlPattern._pattern) + except urlmatch.ParseError: + log.misc.exception("Unable to read UrlPattern: " + str(url)) return False