diff --git a/lbrynet/core/client/BlobRequester.py b/lbrynet/core/client/BlobRequester.py index a887b24c6..f9d61aa3f 100644 --- a/lbrynet/core/client/BlobRequester.py +++ b/lbrynet/core/client/BlobRequester.py @@ -469,7 +469,7 @@ class DownloadRequest(RequestHelper): writer, d = blob.open_for_writing(self.peer) if d is not None: return BlobDownloadDetails(blob, d, writer.write, writer.close, self.peer) - log.debug('Skipping blob %s as there was an issue opening it for writing', blob) + log.warning('Skipping blob %s as there was an issue opening it for writing', blob) return None def _make_request(self, blob_details): diff --git a/lbrynet/daemon/ExchangeRateManager.py b/lbrynet/daemon/ExchangeRateManager.py index 2cc187e2d..df7968f55 100644 --- a/lbrynet/daemon/ExchangeRateManager.py +++ b/lbrynet/daemon/ExchangeRateManager.py @@ -64,8 +64,7 @@ class MarketFeed(object): self.rate = ExchangeRate(self.market, price, int(time.time())) def _log_error(self, err): - log.warning( - "There was a problem updating %s exchange rate information from %s\n%s", + log.warning("There was a problem updating %s exchange rate information from %s\n%s", self.market, self.name, err) def _update_price(self): @@ -141,7 +140,10 @@ class LBRYioBTCFeed(MarketFeed): ) def _handle_response(self, response): - json_response = json.loads(response) + try: + json_response = json.loads(response) + except ValueError: + raise InvalidExchangeRateResponse("invalid rate response : %s" % response) if 'data' not in json_response: raise InvalidExchangeRateResponse(self.name, 'result not found') return defer.succeed(1.0 / json_response['data']['btc_usd'])