mirror of
https://github.com/c0de-archive/spotipy.git
synced 2024-11-14 02:57:27 +00:00
Merge pull request #185 from ncordon/patch-1
Changes critical is not for !=
This commit is contained in:
commit
9054cfecfb
@ -73,7 +73,7 @@ class SpotifyClientCredentials(object):
|
||||
|
||||
response = requests.post(self.OAUTH_TOKEN_URL, data=payload,
|
||||
headers=headers, verify=True, proxies=self.proxies)
|
||||
if response.status_code is not 200:
|
||||
if response.status_code != 200:
|
||||
raise SpotifyOauthError(response.reason)
|
||||
token_info = response.json()
|
||||
return token_info
|
||||
@ -211,7 +211,7 @@ class SpotifyOAuth(object):
|
||||
|
||||
response = requests.post(self.OAUTH_TOKEN_URL, data=payload,
|
||||
headers=headers, verify=True, proxies=self.proxies)
|
||||
if response.status_code is not 200:
|
||||
if response.status_code != 200:
|
||||
raise SpotifyOauthError(response.reason)
|
||||
token_info = response.json()
|
||||
token_info = self._add_custom_values_to_token_info(token_info)
|
||||
|
Loading…
Reference in New Issue
Block a user