mirror of
https://github.com/c0de-archive/spotipy.git
synced 2025-01-06 14:52:50 +00:00
Changes critical is not for !=
This commit is contained in:
parent
7499d8e511
commit
5171911342
@ -73,7 +73,7 @@ class SpotifyClientCredentials(object):
|
|||||||
|
|
||||||
response = requests.post(self.OAUTH_TOKEN_URL, data=payload,
|
response = requests.post(self.OAUTH_TOKEN_URL, data=payload,
|
||||||
headers=headers, verify=True, proxies=self.proxies)
|
headers=headers, verify=True, proxies=self.proxies)
|
||||||
if response.status_code is not 200:
|
if response.status_code != 200:
|
||||||
raise SpotifyOauthError(response.reason)
|
raise SpotifyOauthError(response.reason)
|
||||||
token_info = response.json()
|
token_info = response.json()
|
||||||
return token_info
|
return token_info
|
||||||
@ -214,7 +214,7 @@ class SpotifyOAuth(object):
|
|||||||
|
|
||||||
response = requests.post(self.OAUTH_TOKEN_URL, data=payload,
|
response = requests.post(self.OAUTH_TOKEN_URL, data=payload,
|
||||||
headers=headers, verify=True, proxies=self.proxies)
|
headers=headers, verify=True, proxies=self.proxies)
|
||||||
if response.status_code is not 200:
|
if response.status_code != 200:
|
||||||
raise SpotifyOauthError(response.reason)
|
raise SpotifyOauthError(response.reason)
|
||||||
token_info = response.json()
|
token_info = response.json()
|
||||||
token_info = self._add_custom_values_to_token_info(token_info)
|
token_info = self._add_custom_values_to_token_info(token_info)
|
||||||
|
Loading…
Reference in New Issue
Block a user