fix flake8

This commit is contained in:
Glandos 2022-07-10 16:01:17 +02:00
parent ff08df043a
commit 3a73c26e6d

View file

@ -26,7 +26,7 @@ class CurrencyConverter(object, metaclass=Singleton):
def get_rates(self):
try:
rates = requests.get(self.api_url).json()["rates"]
except Exception as e:
except Exception:
warnings.warn(
f"Call to {self.api_url} failed: {traceback.format_exc(limit=0).strip()}"
)