Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
TypeError
when linter:
or skip:
keys are empty
Fix the error such as: ``` Traceback (most recent call last): File "/home/mgorny/miniforge3/bin/conda-smithy", line 10, in <module> sys.exit(main()) ^^^^^^ File "/home/mgorny/git/conda-smithy/conda_smithy/cli.py", line 767, in main args.subcommand_func(args) File "/home/mgorny/git/conda-smithy/conda_smithy/cli.py", line 645, in __call__ lints, hints = linter.main( ^^^^^^^^^^^^ File "/home/mgorny/git/conda-smithy/conda_smithy/lint_recipe.py", line 733, in main results, hints = lintify_meta_yaml( ^^^^^^^^^^^^^^^^^^ File "/home/mgorny/git/conda-smithy/conda_smithy/lint_recipe.py", line 281, in lintify_meta_yaml if "lint_noarch_selectors" not in lints_to_skip: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: argument of type 'NoneType' is not iterable ``` when `conda-forge.yml` contains an empty key, e.g.: ``` linter: skip: ``` Noticed this accidentally while testing the other changes.
- Loading branch information