mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-11 04:59:51 +00:00
fx: don't dump trace if getting rates fails
This commit is contained in:
parent
8fe066707a
commit
dc51e82f54
1 changed files with 2 additions and 2 deletions
|
@ -11,6 +11,7 @@ import csv
|
||||||
import decimal
|
import decimal
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
import concurrent.futures
|
import concurrent.futures
|
||||||
|
import traceback
|
||||||
|
|
||||||
from .bitcoin import COIN
|
from .bitcoin import COIN
|
||||||
from .i18n import _
|
from .i18n import _
|
||||||
|
@ -97,8 +98,7 @@ class ExchangeBase(PrintError):
|
||||||
self.print_error("received fx history for", ccy)
|
self.print_error("received fx history for", ccy)
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
self.print_error("failed fx history:", e)
|
self.print_error("failed fx history:", e)
|
||||||
import traceback
|
#traceback.print_exc()
|
||||||
traceback.print_exc()
|
|
||||||
return
|
return
|
||||||
filename = os.path.join(cache_dir, self.name() + '_' + ccy)
|
filename = os.path.join(cache_dir, self.name() + '_' + ccy)
|
||||||
with open(filename, 'w', encoding='utf-8') as f:
|
with open(filename, 'w', encoding='utf-8') as f:
|
||||||
|
|
Loading…
Add table
Reference in a new issue