fix flake8

This commit is contained in:
Glandos 2022-07-10 16:01:17 +02:00
parent 4b8bc37b55
commit 3f54f0ce80

View file

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