mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-04 03:04:31 +00:00
remove assert, original run with original args
This commit is contained in:
parent
7fd7fc67f7
commit
435b1df2db
@ -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:]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user