Browse Source

fx: don't dump trace if getting rates fails

3.3.3.1
SomberNight 7 years ago
parent
commit
dc51e82f54
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 4
      electrum/exchange_rate.py

4
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:

Loading…
Cancel
Save