async fix

This commit is contained in:
itsdeka
2021-12-20 12:41:33 +01:00
parent 7f47405fa3
commit ae234b6066

View File

@@ -2,10 +2,10 @@ from ..utils.custom_logger import CustomLogger
def handle_failure(func):
def inner_function(*args, **kwargs):
async def inner_function(*args, **kwargs):
logger = CustomLogger('BfxWebsocket', logLevel="DEBUG")
try:
func(*args, **kwargs)
await func(*args, **kwargs)
except Exception as exception_message:
logger.error(exception_message)