mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 14:54:21 +01:00
13 lines
357 B
Python
13 lines
357 B
Python
from ..utils.custom_logger import CustomLogger
|
|
|
|
|
|
def handle_failure(func):
|
|
async def inner_function(*args, **kwargs):
|
|
logger = CustomLogger('BfxWebsocket', logLevel="DEBUG")
|
|
try:
|
|
await func(*args, **kwargs)
|
|
except Exception as exception_message:
|
|
logger.error(exception_message)
|
|
|
|
return inner_function
|