rm aiosafe decorator. instead: log_exceptions and ignore_exceptions
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user