From f8a6e4edb6cd67cff8d662af715ed9940f4cc600 Mon Sep 17 00:00:00 2001 From: Matt Comben Date: Sat, 27 Apr 2019 10:20:44 +0100 Subject: [PATCH] Fix bug where formatted arguments are passed to self._warn, which only accepts a single string --- spotipy/client.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spotipy/client.py b/spotipy/client.py index 7c328fe..897ebdb 100644 --- a/spotipy/client.py +++ b/spotipy/client.py @@ -1081,15 +1081,15 @@ class Spotify(object): fields = id.split(':') if len(fields) >= 3: if type != fields[-2]: - self._warn('expected id of type %s but found type %s %s', - type, fields[-2], id) + self._warn('expected id of type %s but found type %s %s' % + (type, fields[-2], id)) return fields[-1] fields = id.split('/') if len(fields) >= 3: itype = fields[-2] if type != itype: - self._warn('expected id of type %s but found type %s %s', - type, itype, id) + self._warn('expected id of type %s but found type %s %s' % + (type, itype, id)) return fields[-1] return id