Skip to content

Commit

Permalink
🐛 fix license expression dialog crash
Browse files Browse the repository at this point in the history
Signed-off-by: rjdbcm <[email protected]>
  • Loading branch information
rjdbcm committed Jun 28, 2024
1 parent 3011f5c commit 4babcd3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ozi/new/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,13 @@ def license_expression( # noqa: C901
) -> tuple[None | list[str] | str, list[str], dict[str, str]]:
_license_expression: str = ''
while True:
possible_spdx: Sequence[str] = METADATA.spec.python.pkg.license.ambiguous.get(
_license,
(''),
possible_spdx: Sequence[str] | None = (
METADATA.spec.python.pkg.license.ambiguous.get(
_license,
(),
)
)
_default = possible_spdx[0]
_default = possible_spdx[0] if possible_spdx else ''
for n, i in enumerate(output):
if i.startswith('--license-expression'):
_default = output.pop(n).replace('--license-expression=', '').strip('"')
Expand Down

0 comments on commit 4babcd3

Please sign in to comment.