Fix 500 errors when opening the repo search API endpoint with a browser
To test this:
- Start your Django dev server
- Browse
/api/v1/oauth/credentials/
and get your credential UUID - Browse
/api/v1/imports/repos/search/<Credential UUID>/
; this would cause a 500 without the merge request - To check the actually useful features still work, open the frontend, search for a Git repo, and add it to a corpus.
Edited by Erwan Rouchet