From d11d59dd92195efc54344f2af0b7ed69624e1302 Mon Sep 17 00:00:00 2001 From: Mike Degatano Date: Fri, 22 Nov 2024 09:54:21 -0500 Subject: [PATCH] Add null check on user path in mounts (#5446) --- supervisor/api/mounts.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/supervisor/api/mounts.py b/supervisor/api/mounts.py index d013b2287..b00f15781 100644 --- a/supervisor/api/mounts.py +++ b/supervisor/api/mounts.py @@ -35,7 +35,9 @@ class APIMounts(CoreSysAttributes): 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 ],