From 3a73c26e6dfd8572e56503616f86e3515546e44b Mon Sep 17 00:00:00 2001 From: Glandos Date: Sun, 10 Jul 2022 16:01:17 +0200 Subject: [PATCH] fix flake8 --- ihatemoney/currency_convertor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ihatemoney/currency_convertor.py b/ihatemoney/currency_convertor.py index 0432e683..1139a445 100644 --- a/ihatemoney/currency_convertor.py +++ b/ihatemoney/currency_convertor.py @@ -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()}" )