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

webapp: Fix possible unbound bs variable #1570

Merged
merged 2 commits into from
Jun 12, 2024

Conversation

arthurscchan
Copy link
Contributor

The get_build_status_of_project(str) function could return None type and cause the further access to the attributes of the bs object fails. This PR fixes the problem by adding a None check and return error before it is accessed.

Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
@arthurscchan arthurscchan marked this pull request as ready for review June 12, 2024 16:09
Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
@DavidKorczynski DavidKorczynski merged commit 961ee61 into ossf:main Jun 12, 2024
5 checks passed
arthurscchan added a commit to arthurscchan/fuzz-introspector that referenced this pull request Jun 13, 2024
* webapp: Fix possible unbound bs variable

Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>

* Remote wrong error statement

Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>

---------

Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
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