Local media source: return different error if media folder doesnt exist (#39759)
This commit is contained in:
1 parent
be8aa16170
commit
d0e44893f5
1 file changed
+2
@@ -83,6 +83,8 @@ class LocalSource(MediaSource):
|
||||
full_path = Path(self.hass.config.path("media", location))
|
||||
|
||||
if not full_path.exists():
|
||||
if location == "":
|
||||
raise BrowseError("Media directory does not exist.")
|
||||
raise BrowseError("Path does not exist.")
|
||||
|
||||
if not full_path.is_dir():
|
||||
|
||||
Reference in new issue
Block a user