remove assert, original run with original args
This commit is contained in:
+2
-4
@@ -32,10 +32,8 @@ def patch():
|
|||||||
else:
|
else:
|
||||||
command = [arg.strip() for arg in command]
|
command = [arg.strip() for arg in command]
|
||||||
|
|
||||||
assert isinstance(command, list)
|
if not isinstance(command, list) or "pip" not in command:
|
||||||
|
return subprocess.__original_run(*args, **kwargs)
|
||||||
if "pip" not in command:
|
|
||||||
return subprocess.__original_run([*command, *_args], **_kwargs)
|
|
||||||
|
|
||||||
cmd = command[command.index("pip") + 1:]
|
cmd = command[command.index("pip") + 1:]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user