diff --git a/common.py b/common.py index 86cb48e..f3876f0 100644 --- a/common.py +++ b/common.py @@ -144,6 +144,8 @@ def extract_title(url): (html_text, headers) = fetch_page(url) except URLError as e: return None + except UnicodeDecodeError: + return None except Exception as e: return 'failed: %s for %s' % (str(e), url)