Skip to content

Only add compatible licenses if successful call#50

Merged
hesa merged 3 commits into
mainfrom
hesa-fix-outbound-candidate-bug
Feb 24, 2026
Merged

Only add compatible licenses if successful call#50
hesa merged 3 commits into
mainfrom
hesa-fix-outbound-candidate-bug

Conversation

@hesa
Copy link
Copy Markdown
Owner

@hesa hesa commented Feb 24, 2026

When calling outbound-candidate with faulty parameters:

$ ./devel/licomp-toolkit --usecase weird-unknown-usecase outbound-candidate "APA OR MIT"

then licomp-toolkit crashes with UnboundLocalError: cannot access local variable 'ret' where it is not associated with a value

With this fix the returned data is only read and used on successful response.

@hesa hesa merged commit 20f0848 into main Feb 24, 2026
1 of 5 checks passed
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.

1 participant