stop spamming cryptonator errors. fixes #984
This commit is contained in:
parent
38d1ee6500
commit
fa33110d04
1 changed files with 2 additions and 2 deletions
|
@ -171,7 +171,7 @@ class CryptonatorBTCFeed(MarketFeed):
|
||||||
try:
|
try:
|
||||||
json_response = json.loads(response)
|
json_response = json.loads(response)
|
||||||
except ValueError:
|
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 \
|
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:
|
'success' not in json_response or json_response['success'] is not True:
|
||||||
raise InvalidExchangeRateResponse(self.name, 'result not found')
|
raise InvalidExchangeRateResponse(self.name, 'result not found')
|
||||||
|
@ -194,7 +194,7 @@ class CryptonatorFeed(MarketFeed):
|
||||||
try:
|
try:
|
||||||
json_response = json.loads(response)
|
json_response = json.loads(response)
|
||||||
except ValueError:
|
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 \
|
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:
|
'success' not in json_response or json_response['success'] is not True:
|
||||||
raise InvalidExchangeRateResponse(self.name, 'result not found')
|
raise InvalidExchangeRateResponse(self.name, 'result not found')
|
||||||
|
|
Loading…
Add table
Reference in a new issue