diff --git a/spotipy/util.py b/spotipy/util.py index 8e7827d..e3422f4 100644 --- a/spotipy/util.py +++ b/spotipy/util.py @@ -74,7 +74,11 @@ def prompt_for_user_token(username, scope=None, client_id = None, print() print() - response = input("Enter the URL you were redirected to: ") + try: + response = raw_input("Enter the URL you were redirected to: ") + except NameError: + response = input("Enter the URL you were redirected to: ") + print() print()