Add log message when Plex library section not found ()

pull/67029/head
jjlawren 2022-02-22 03:35:19 -06:00 committed by GitHub
parent 31867d54b6
commit df9e92b4b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions
homeassistant/components/plex

View File

@ -644,7 +644,10 @@ class PlexServer:
_LOGGER.error("Must specify 'library_name' for this search")
return None
except NotFound:
_LOGGER.error("Library '%s' not found", library_name)
library_sections = [section.title for section in self.library.sections()]
_LOGGER.error(
"Library '%s' not found in %s", library_name, library_sections
)
return None
return search_media(media_type, library_section, **kwargs)