Return default blank content type (Fixes Tautulli/Tautulli-Issues#165)

This commit is contained in:
JonnyWong16 2019-03-03 13:39:45 -08:00
parent 5dd7806c0e
commit cb81bcac57

View file

@ -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: