1
0

rm aiosafe decorator. instead: log_exceptions and ignore_exceptions

This commit is contained in:
SomberNight
2018-10-12 18:29:59 +02:00
parent ab441a507a
commit e3b372946a
6 changed files with 41 additions and 33 deletions

View File

@@ -14,7 +14,7 @@ from typing import Sequence
from .bitcoin import COIN
from .i18n import _
from .util import PrintError, ThreadJob, make_dir, aiosafe
from .util import PrintError, ThreadJob, make_dir, log_exceptions
from .util import make_aiohttp_session
from .network import Network
@@ -58,7 +58,7 @@ class ExchangeBase(PrintError):
def name(self):
return self.__class__.__name__
@aiosafe
@log_exceptions
async def update_safe(self, ccy):
try:
self.print_error("getting fx quotes for", ccy)
@@ -89,7 +89,7 @@ class ExchangeBase(PrintError):
self.on_history()
return h
@aiosafe
@log_exceptions
async def get_historical_rates_safe(self, ccy, cache_dir):
try:
self.print_error("requesting fx history for", ccy)