mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-29 01:42:37 +02:00
fix flake8
This commit is contained in:
parent
ff08df043a
commit
3a73c26e6d
1 changed files with 1 additions and 1 deletions
|
@ -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()}"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue