Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError When There Are No Nested Requirements #2589

Closed
Ennovate-com opened this issue Nov 2, 2023 · 1 comment
Closed

TypeError When There Are No Nested Requirements #2589

Ennovate-com opened this issue Nov 2, 2023 · 1 comment

Comments

@Ennovate-com
Copy link
Contributor

Ennovate-com commented Nov 2, 2023

In pres_exch_handler.py when req.nested_req is None the if statement on line 1214 evaluates to False and the code in the else will be executed with req.nested_req having the type NoneType. In the else it executes self.apply_requirements with the parameter req=req. In that function, when it reaches the statement for requirement in req.nested_req: with no value for req.nested_req, it raises the Exception TypeError: 'NoneType' object is not iterable.

Since the calling function create_vp calls apply_requirements in both cases (if req.nested_req or not), the called function should handle both cases as well.

@Ennovate-com
Copy link
Contributor Author

Fixed in PR #2590

dbluhm added a commit that referenced this issue Nov 3, 2023
…ed_requirements

Fix Issue #2589 TypeError When There Are No Nested Requirements
@dbluhm dbluhm closed this as completed Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants