use readURL / fix LINTING errors.

This commit is contained in:
gerlofvanek
2024-09-11 12:55:20 +02:00
parent b6d29a33d2
commit cdfb9132ad
4 changed files with 19 additions and 22 deletions

View File

@@ -7716,7 +7716,7 @@ class BasicSwap(BaseApp):
exchange_name_to = ci_to.getExchangeName('coingecko.com')
ticker_from = ci_from.chainparams()['ticker']
ticker_to = ci_to.chainparams()['ticker']
headers = {'Connection': 'close'}
headers = {'User-Agent': 'Mozilla/5.0', 'Connection': 'close'}
rv = {}
if rate_sources.get('coingecko.com', True):