mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-31 04:42:09 -08:00
remove assert, original run with original args
This commit is contained in:
parent
7fd7fc67f7
commit
435b1df2db
1 changed files with 2 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue