diff --git a/server/githubsrm/apis/utils.py b/server/githubsrm/apis/utils.py index e6ebcad..db7df5e 100644 --- a/server/githubsrm/apis/utils.py +++ b/server/githubsrm/apis/utils.py @@ -45,6 +45,7 @@ def verify_github_details(verify_user=False, **kwargs): if verify_user: response = session.get(f"{github_api}/users/{kwargs['user_id']}") res = response.json() + # Will send False to the frontend if server is down or User ID is not a personal id but a Organisation ID. if(response.status_code == 200): if(res['type']=="User" ): return True