diff --git a/spotipy/client.py b/spotipy/client.py index 6f5dae7..a45d4d3 100644 --- a/spotipy/client.py +++ b/spotipy/client.py @@ -211,9 +211,12 @@ class Spotify(object): else: return None - def _warn(self, msg): + def _warn_old(self, msg): print('warning:' + msg, file=sys.stderr) + def _warn(self, msg, *args): + print('warning:' + msg.format(*args), file=sys.stderr) + def track(self, track_id): ''' returns a single track given the track's ID, URI or URL