Skip to content

Commit d11d59d

Browse files
authored
Add null check on user path in mounts (#5446)
1 parent 7a55f58 commit d11d59d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

supervisor/api/mounts.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ async def info(self, request: web.Request) -> dict[str, Any]:
3535
mount.to_dict()
3636
| {
3737
ATTR_STATE: mount.state,
38-
ATTR_USER_PATH: mount.container_where.as_posix(),
38+
ATTR_USER_PATH: mount.container_where.as_posix()
39+
if mount.container_where
40+
else None,
3941
}
4042
for mount in self.sys_mounts.mounts
4143
],

0 commit comments

Comments
 (0)