Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix conditional statement (#38)
There is currently a conditional statement that is incorrectly attempting to index a string instead of retrieving a value from a dictionary. Instead of accessing `f["output"]`, it needs to be adjusted to `files[f]["output"]` The code excerpt below shows a minimal reproducer of the problem and the solution. ```python files = {'checks': {'matrix': {'cuda': ['11.8'], 'arch': ['x86_64'], 'py': ['3.10']}, 'output': 'conda', 'includes': ['checks', 'py_version']}} # this throws error: "TypeError: string indices must be integers" for f in files: f["output"] # this fixes it for f in files: files[f]["output"] ```
- Loading branch information