mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 17:32:38 +02:00
change error format to be compatible with py < 3.10
This commit is contained in:
parent
9341dc292e
commit
ff08df043a
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ class CurrencyConverter(object, metaclass=Singleton):
|
|||
rates = requests.get(self.api_url).json()["rates"]
|
||||
except Exception as e:
|
||||
warnings.warn(
|
||||
f"Call to {self.api_url} failed: {traceback.format_exception_only(e)[0].strip()}"
|
||||
f"Call to {self.api_url} failed: {traceback.format_exc(limit=0).strip()}"
|
||||
)
|
||||
# In case of any exception, let's have an empty value
|
||||
rates = {}
|
||||
|
|
Loading…
Reference in a new issue