From 435b1df2dbfb9740b65d29fceb3eedba37a98207 Mon Sep 17 00:00:00 2001 From: w-e-w <40751091+w-e-w@users.noreply.github.com> Date: Sat, 1 Mar 2025 00:17:31 +0900 Subject: [PATCH] remove assert, original run with original args --- modules/uv_hook.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/uv_hook.py b/modules/uv_hook.py index 1e27e9b78..99e89ef10 100644 --- a/modules/uv_hook.py +++ b/modules/uv_hook.py @@ -32,10 +32,8 @@ def patch(): else: command = [arg.strip() for arg in command] - assert isinstance(command, list) - - if "pip" not in command: - return subprocess.__original_run([*command, *_args], **_kwargs) + if not isinstance(command, list) or "pip" not in command: + return subprocess.__original_run(*args, **kwargs) cmd = command[command.index("pip") + 1:]