update-python-libraries: quiet nix stderr output

We query lots of derivation attributes, most of which do not exist, so
logging stderr causes a lot of noise for no gain.
This commit is contained in:
Martin Weinelt 2023-12-02 03:29:04 +01:00
parent 50311a8d07
commit ac82700414
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -87,7 +87,8 @@ def _get_attr_value(attr_path: str) -> Optional[Any]:
f"{NIXPKGS_ROOT}/default.nix",
"--json",
f"{attr_path}",
]
],
stderr=subprocess.DEVNULL,
)
return json.loads(response.decode())
except (subprocess.CalledProcessError, ValueError):