Browse Source
fx: disable checking mime type in get_json
looking at you, CoinDesk..
3.3.3.1
SomberNight
7 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
2 additions and
1 deletions
-
electrum/exchange_rate.py
|
|
@ -47,7 +47,8 @@ class ExchangeBase(PrintError): |
|
|
|
url = ''.join(['https://', site, get_string]) |
|
|
|
async with make_aiohttp_session(Network.get_instance().proxy) as session: |
|
|
|
async with session.get(url) as response: |
|
|
|
return await response.json() |
|
|
|
# set content_type to None to disable checking MIME type |
|
|
|
return await response.json(content_type=None) |
|
|
|
|
|
|
|
async def get_csv(self, site, get_string): |
|
|
|
raw = await self.get_raw(site, get_string) |
|
|
|