fx: don't dump trace if getting rates fails

This commit is contained in:
SomberNight 2018-09-06 18:25:23 +02:00
parent 8fe066707a
commit dc51e82f54
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

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