Daryl Fung commited on
Commit
36b9958
1 Parent(s): 6f87188

fix content type error

Browse files
Files changed (1) hide show
  1. db/audio_db/is3/wrapper.py +1 -1
db/audio_db/is3/wrapper.py CHANGED
@@ -32,7 +32,7 @@ async def get_tokens():
32
  'grant_type': 'refresh_token',
33
  }
34
  )
35
- r = await r.json()
36
  return r['access_token'], r['refresh_token']
37
 
38
  ACCESS_TOKEN, REFRESH_TOKEN = asyncio.run(get_tokens())
 
32
  'grant_type': 'refresh_token',
33
  }
34
  )
35
+ r = await r.json(content_type='application/json')
36
  return r['access_token'], r['refresh_token']
37
 
38
  ACCESS_TOKEN, REFRESH_TOKEN = asyncio.run(get_tokens())