Return default blank content type (Fixes Tautulli/Tautulli-Issues#165)
This commit is contained in:
@@ -289,7 +289,7 @@ def server_message(response, return_msg=False):
|
|||||||
message = None
|
message = None
|
||||||
|
|
||||||
# First attempt is to 'read' the response as HTML
|
# First attempt is to 'read' the response as HTML
|
||||||
if "text/html" in response.headers.get("content-type"):
|
if "text/html" in response.headers.get("content-type", ""):
|
||||||
try:
|
try:
|
||||||
soup = BeautifulSoup(response.content, "html5lib")
|
soup = BeautifulSoup(response.content, "html5lib")
|
||||||
except Exception:
|
except Exception:
|
||||||
|
Reference in New Issue
Block a user