mirror of
https://github.com/c0de-archive/spotipy.git
synced 2024-11-14 02:57:27 +00:00
Fixed warn to work with varargs
This commit is contained in:
parent
dc996b363f
commit
6261eae0e2
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user