mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 23:04:21 +01:00
Fixed socket.send() issue (IndexError: deque index out of range)
This commit is contained in:
12
bfxapi/utils/decorators.py
Normal file
12
bfxapi/utils/decorators.py
Normal 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
|
||||
Reference in New Issue
Block a user