Browse Source
fx: don't dump trace if getting rates fails
3.3.3.1
SomberNight
7 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
2 additions and
2 deletions
-
electrum/exchange_rate.py
|
|
@ -11,6 +11,7 @@ import csv |
|
|
|
import decimal |
|
|
|
from decimal import Decimal |
|
|
|
import concurrent.futures |
|
|
|
import traceback |
|
|
|
|
|
|
|
from .bitcoin import COIN |
|
|
|
from .i18n import _ |
|
|
@ -97,8 +98,7 @@ class ExchangeBase(PrintError): |
|
|
|
self.print_error("received fx history for", ccy) |
|
|
|
except BaseException as e: |
|
|
|
self.print_error("failed fx history:", e) |
|
|
|
import traceback |
|
|
|
traceback.print_exc() |
|
|
|
#traceback.print_exc() |
|
|
|
return |
|
|
|
filename = os.path.join(cache_dir, self.name() + '_' + ccy) |
|
|
|
with open(filename, 'w', encoding='utf-8') as f: |
|
|
|