Skip to content

Commit

Permalink
Add null check on user path in mounts (#5446)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdegat01 authored Nov 22, 2024
1 parent 7a55f58 commit d11d59d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion supervisor/api/mounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ async def info(self, request: web.Request) -> dict[str, Any]:
mount.to_dict()
| {
ATTR_STATE: mount.state,
ATTR_USER_PATH: mount.container_where.as_posix(),
ATTR_USER_PATH: mount.container_where.as_posix()
if mount.container_where
else None,
}
for mount in self.sys_mounts.mounts
],
Expand Down

0 comments on commit d11d59d

Please sign in to comment.