From dabb168853bd9f50cf1982962d64db35cc8518cd Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Tue, 4 May 2021 01:20:18 -0300 Subject: [PATCH] dont log full exceptions on simple connection errors --- lbry/extras/daemon/exchange_rate_manager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lbry/extras/daemon/exchange_rate_manager.py b/lbry/extras/daemon/exchange_rate_manager.py index dddac741d..283f6979b 100644 --- a/lbry/extras/daemon/exchange_rate_manager.py +++ b/lbry/extras/daemon/exchange_rate_manager.py @@ -5,7 +5,7 @@ import logging from statistics import median from decimal import Decimal from typing import Optional, Iterable, Type -from aiohttp.client_exceptions import ContentTypeError +from aiohttp.client_exceptions import ContentTypeError, ClientConnectionError from lbry.error import InvalidExchangeRateResponseError, CurrencyConversionError from lbry.utils import aiohttp_request from lbry.wallet.dewies import lbc_to_dewies @@ -91,6 +91,8 @@ class MarketFeed: log.debug(msg) except InvalidExchangeRateResponseError as e: log.warning(str(e)) + except ClientConnectionError as e: + log.warning("Error trying to connect to exchange rate %s: %s", self.name, str(e)) except Exception as e: log.exception("Exchange rate error (%s from %s):", self.market, self.name)