Patching broken spotify token refresher

This commit is contained in:
James Barnsley
2017-10-14 20:25:21 +13:00
parent f251974b0e
commit a9e07f70d1
3 changed files with 6 additions and 7 deletions

View File

@ -201,6 +201,7 @@ class HttpHandler(tornado.web.RequestHandler):
# when our request calls subsequent external requests (eg Spotify, Genius).
# We don't need to wrap non-HTTPResponse responses as these are dicts
if isinstance(response, tornado.httpclient.HTTPResponse):
print response.body
response = {
'response_code': response.code,
'response_reason': response.reason,