From 7da89b3137acc08e042559c7465ddee1933f1c39 Mon Sep 17 00:00:00 2001 From: Yasser Sinjab Date: Wed, 27 May 2020 23:38:44 +0300 Subject: [PATCH] Fix class initialization - make super python 2 compatible for SpotifyOauthError --- spotipy/oauth2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spotipy/oauth2.py b/spotipy/oauth2.py index 410499c..fdcdca3 100644 --- a/spotipy/oauth2.py +++ b/spotipy/oauth2.py @@ -32,7 +32,7 @@ class SpotifyOauthError(Exception): def __init__(self, message, error=None, error_description=None, *args, **kwargs): self.error = error self.error_description = error_description - super().__init__(message, *args, **kwargs) + super(SpotifyOauthError, self).__init__(message, *args, **kwargs) def _make_authorization_headers(client_id, client_secret):