From 6036c50ad8d099d073439b811dff43104c743004 Mon Sep 17 00:00:00 2001 From: J-Lindvig <54498188+J-Lindvig@users.noreply.github.com> Date: Thu, 9 Mar 2023 19:44:48 +0100 Subject: [PATCH] Add files via upload --- custom_components/bibliotek_dk/library_api.py | 2 +- custom_components/bibliotek_dk/manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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" }