diff --git a/jellyfin_kodi/jellyfin/api.py b/jellyfin_kodi/jellyfin/api.py index 8d9f2cae..a65c5836 100644 --- a/jellyfin_kodi/jellyfin/api.py +++ b/jellyfin_kodi/jellyfin/api.py @@ -6,6 +6,7 @@ import json import requests from six import ensure_str +from ..helper.exceptions import HTTPException from ..helper.utils import settings from ..helper import LazyLogger @@ -268,6 +269,10 @@ class API(object): LOG.warning("Error checking companion installed state: %s", e) if e.response.status_code == 404: return False + except HTTPException as e: + LOG.warning("Error checking companion installed state: %s", e) + if e.status == 404: + return False return None