stop spamming cryptonator errors. fixes #984

This commit is contained in:
Alex Grintsvayg 2018-02-27 14:06:45 -05:00
parent 38d1ee6500
commit fa33110d04

View file

@ -171,7 +171,7 @@ class CryptonatorBTCFeed(MarketFeed):
try:
json_response = json.loads(response)
except ValueError:
raise InvalidExchangeRateResponse(self.name, "invalid rate response : %s" % response)
raise InvalidExchangeRateResponse(self.name, "invalid rate response")
if 'ticker' not in json_response or len(json_response['ticker']) == 0 or \
'success' not in json_response or json_response['success'] is not True:
raise InvalidExchangeRateResponse(self.name, 'result not found')
@ -194,7 +194,7 @@ class CryptonatorFeed(MarketFeed):
try:
json_response = json.loads(response)
except ValueError:
raise InvalidExchangeRateResponse(self.name, "invalid rate response : %s" % response)
raise InvalidExchangeRateResponse(self.name, "invalid rate response")
if 'ticker' not in json_response or len(json_response['ticker']) == 0 or \
'success' not in json_response or json_response['success'] is not True:
raise InvalidExchangeRateResponse(self.name, 'result not found')