Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Lindvig authored Mar 9, 2023
1 parent 829d237 commit 6036c50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/bibliotek_dk/library_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/bibliotek_dk/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"codeowners": ["@J-Lindvig"],
"requirements": ["beautifulsoup4", "html.parser"],
"iot_class": "cloud_polling",
"version": "0.3.5"
"version": "0.3.6"
}

0 comments on commit 6036c50

Please sign in to comment.