Skip to content

The agent that grows with you

fix(pm): cmd_install tolerates callers that omit --extra

ethernet963566d7035c
diff --git a/pm/cli.py b/pm/cli.py
index 82ceac23fc3..4011ff8c2d0 100644
--- a/pm/cli.py
+++ b/pm/cli.py
@@ -164,7 +164,7 @@ def cmd_install(args) -> int:
return 1
# Source-install launchers require the store interpreter, even though
# Python remains optional when provisioning individual tools.
- extras = list(dict.fromkeys(args.extra))
+ extras = list(dict.fromkeys(getattr(args, "extra", None) or ()))
if extras and cross_target:
print("✗ --extra syncs this install's venv and cannot combine with --target")
return 1