Merge pull request #185 from ncordon/patch-1

Changes critical is not for !=
This commit is contained in:
Paul Lamere 2017-09-17 11:50:08 -04:00 committed by GitHub
commit 9054cfecfb

View File

@ -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)