Better fix for #2183

This commit is contained in:
rembo10
2015-07-06 00:02:09 -07:00
parent 57c3c7b2e0
commit 064a21a07c

View File

@@ -206,7 +206,7 @@ def server_message(response):
message = None
# First attempt is to 'read' the response as HTML
if response.headers and "text/html" in response.headers.get("content-type"):
if response.headers.get("content-type") == "text/html":
try:
soup = BeautifulSoup(response.content, "html5lib")
except Exception: