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

DX-662: Avoid poetry list panic #268

Merged

Conversation

blast-hardcheese
Copy link
Collaborator

Why

Since pyproject.toml is not exclusive to Poetry, we shouldn't presume that the poetry section is present

What changed

If we detect that [tool.poetry] is null, bail before we try to dereference it.

Test plan

In a blank repl,

$ touch pyproject.toml
$ upm -l python list

should not panic

Since pyproject.toml is not exclusive to Poetry, we shouldn't presume that the poetry section is present
@blast-hardcheese blast-hardcheese requested a review from a team as a code owner June 10, 2024 22:20
@blast-hardcheese blast-hardcheese requested review from cdmistman and ryantm and removed request for a team June 10, 2024 22:20
@blast-hardcheese blast-hardcheese merged commit 51f1192 into main Jun 10, 2024
3 checks passed
@blast-hardcheese blast-hardcheese deleted the dstewart/DX-662/bug/poetry-backend-list-panic branch June 10, 2024 22:40
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

Successfully merging this pull request may close these issues.

2 participants