From c8ff4b960acf21fcda67e7a83e33bf4250e9c0ff Mon Sep 17 00:00:00 2001 From: Paul Lamere Date: Mon, 2 Jan 2017 12:11:27 -0500 Subject: [PATCH] Fixed proxy issue --- spotipy/oauth2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spotipy/oauth2.py b/spotipy/oauth2.py index 7303ff0..0d30bd3 100644 --- a/spotipy/oauth2.py +++ b/spotipy/oauth2.py @@ -99,7 +99,7 @@ class SpotifyOAuth(object): OAUTH_TOKEN_URL = 'https://accounts.spotify.com/api/token' def __init__(self, client_id, client_secret, redirect_uri, - state=None, scope=None, cache_path=None): + state=None, scope=None, cache_path=None, proxies=None): ''' Creates a SpotifyOAuth object @@ -118,6 +118,7 @@ class SpotifyOAuth(object): self.state=state self.cache_path = cache_path self.scope=self._normalize_scope(scope) + self.proxies = proxies def get_cached_token(self): ''' Gets a cached auth token