-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
ISSUE:
try:
response = auth_client.get_user_info()
except ValueError:
return HttpResponse('id_token or access_token not found.')
except AuthClientError as e:
print(e.status_code)
print(e.intuit_tid)
return HttpResponse(response.content)
Below is the fixed code for issue
_# if there is no response then it throws an error so we need to put a check here so that if there is no response we can return message_
try:
response = auth_client.get_user_info()
except ValueError:
return HttpResponse('id_token or access_token not found.')
except AuthClientError as e:
print(e.status_code)
print(e.intuit_tid)
if response:
return HttpResponse(response.content)
else:
return HttpResponse('Something Went Wrong!')
Metadata
Metadata
Assignees
Labels
No labels