We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e24d07 commit b596d3bCopy full SHA for b596d3b
scraper_service/shovel_tao_price/cmc_client.py
@@ -55,6 +55,9 @@ def get_price_by_time(timestamp):
55
56
if status_code == 200 and 'data' in data and 'quotes' in data['data']:
57
logging.info("Successfully parsed response data")
58
+ if not data['data']['quotes']:
59
+ logging.info("No quotes data available, skipping")
60
+ return None
61
quote = data['data']['quotes'][0]
62
usd_quote = quote['quote']['USD']
63
price = usd_quote['price']
0 commit comments