From cdc9748a31dbe1c75a922147349554146153bb9c Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Mon, 8 Jun 2026 01:20:31 +0800 Subject: [PATCH] fix: rf --- astrbot/core/tools/message_tools.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/astrbot/core/tools/message_tools.py b/astrbot/core/tools/message_tools.py index 4763907e1..40516d529 100644 --- a/astrbot/core/tools/message_tools.py +++ b/astrbot/core/tools/message_tools.py @@ -31,10 +31,12 @@ def _file_send_allowed_roots(umo: str | None) -> tuple[Path, ...]: roots = [] if umo: roots.append(workspace_root(umo)) - roots.extend([ - Path(get_astrbot_temp_path()).resolve(strict=False), - Path(get_astrbot_system_tmp_path()).resolve(strict=False), - ]) + roots.extend( + [ + Path(get_astrbot_temp_path()).resolve(strict=False), + Path(get_astrbot_system_tmp_path()).resolve(strict=False), + ] + ) return tuple(roots)