Fixed socket.send() issue (IndexError: deque index out of range)

This commit is contained in:
itsdeka
2021-12-20 12:17:27 +01:00
parent e7262d88ba
commit 7f47405fa3
5 changed files with 21 additions and 2 deletions

View File

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