UnboundLocalError
for GitHub fetch_search_github_resource
on HTTP Error response
#4627
Open
1 of 4 tasks
How are you running Flagsmith
Describe the bug
There is a bug the came up on Sentry here where the
json_response
has not been set due to a HTTP error being raised by thetry
/except
block. The solution will likely add a response to theexcept
block where theif
condition fails.Steps To Reproduce
Hard to reproduce since it's an unexpected error, but using mocks and testing the conditions can be simulated.
Expected behavior
Error responses should be sent as errors instead of continuing to process the data.
Screenshots
No response
The text was updated successfully, but these errors were encountered: