diff --git a/custom_components/bibliotek_dk/library_api.py b/custom_components/bibliotek_dk/library_api.py index c6662e4..973602a 100644 --- a/custom_components/bibliotek_dk/library_api.py +++ b/custom_components/bibliotek_dk/library_api.py @@ -230,7 +230,7 @@ def _getMaterialInfo(self, material) -> tuple: try: if materialTitle: materialTitle = materialTitle.string - if "(" in materialTitle: + if materialTitle and "(" in materialTitle: materialTitle = materialTitle.split("(")[0].strip() except (AttributeError, KeyError) as err: _LOGGER.error("Error searching for the title. Error: %s", err) diff --git a/custom_components/bibliotek_dk/manifest.json b/custom_components/bibliotek_dk/manifest.json index b2a2428..7b61555 100644 --- a/custom_components/bibliotek_dk/manifest.json +++ b/custom_components/bibliotek_dk/manifest.json @@ -9,5 +9,5 @@ "codeowners": ["@J-Lindvig"], "requirements": ["beautifulsoup4", "html.parser"], "iot_class": "cloud_polling", - "version": "0.3.5" + "version": "0.3.6" }