mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Add log message when Plex library section not found (#66820)
This commit is contained in:
parent
31867d54b6
commit
df9e92b4b8
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user