From 03b62642ab498aca8b55607c3e809c7e081faaa1 Mon Sep 17 00:00:00 2001 From: Ken Odegard Date: Thu, 21 Nov 2024 12:43:47 -0600 Subject: [PATCH 1/2] Update main_build.py --- conda_build/cli/main_build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conda_build/cli/main_build.py b/conda_build/cli/main_build.py index 3d9e43a5fb..221299b485 100644 --- a/conda_build/cli/main_build.py +++ b/conda_build/cli/main_build.py @@ -512,7 +512,7 @@ def parse_args(args: Sequence[str] | None) -> tuple[ArgumentParser, Namespace]: # TODO: Remove in 25.1 if ( - all(not arg.startswith("--package-format") for arg in args) + all(not arg.startswith("--package-format") for arg in (args or [])) and warn_about_default_pkg_format and "purge" not in parsed.recipe and "purge-all" not in parsed.recipe From 1a8dac786a0093b99f9f3e3e48b8130fcc128a0f Mon Sep 17 00:00:00 2001 From: Ken Odegard Date: Thu, 21 Nov 2024 12:47:33 -0600 Subject: [PATCH 2/2] Add news --- news/5550-fix-TypeError-no-arguments | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 news/5550-fix-TypeError-no-arguments diff --git a/news/5550-fix-TypeError-no-arguments b/news/5550-fix-TypeError-no-arguments new file mode 100644 index 0000000000..08f22156d9 --- /dev/null +++ b/news/5550-fix-TypeError-no-arguments @@ -0,0 +1,19 @@ +### Enhancements + +* + +### Bug fixes + +* Fix `TypeError` when no CLI arguments are passed. (#5549 via #5550) + +### Deprecations + +* + +### Docs + +* + +### Other + +*