Libraries refactor and add some sinks #4
|
@ -7,7 +7,7 @@ from twisted.internet.threads import deferToThread
|
|||
from json import loads
|
||||
from forex_python.converter import CurrencyRates
|
||||
from agoradesk_py import AgoraDesk
|
||||
from httpx import ReadTimeout, ReadError
|
||||
from httpx import ReadTimeout, ReadError, RemoteProtocolError
|
||||
from pycoingecko import CoinGeckoAPI
|
||||
from datetime import datetime
|
||||
from time import sleep
|
||||
|
@ -25,7 +25,7 @@ def handle_exceptions(func):
|
|||
def inner_function(*args, **kwargs):
|
||||
try:
|
||||
rtrn = func(*args, **kwargs)
|
||||
except (ReadTimeout, ReadError):
|
||||
except (ReadTimeout, ReadError, RemoteProtocolError):
|
||||
return False
|
||||
if isinstance(rtrn, dict):
|
||||
if "success" in rtrn:
|
||||
|
|
Loading…
Reference in New Issue