Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2022-09-17 15:52:46 +02:00
parent aa44cce4f3
commit 54aa41548a
2 changed files with 4 additions and 1 deletions

View File

@@ -58,6 +58,7 @@ def get_token(code): # pragma: no cover
response = requests.post(url, auth=HTTPBasicAuth(oauth_data['client_id'], oauth_data['client_secret']),
data=post_data)
if response.status_code != 200:
return [0, response.text, 0, 0]