Handle maximum channels limit;

Proper handle of a case where the app ends up with more channels from ACLs than is supported
This commit is contained in:
DevilXD committed 2022-02-13 20:13:11 +01:00
1 parent ce9af7b4ba
commit 423e51bc27
7 files changed
+111 -72

No files matched your search

+5 -2
View File
@@ -7,8 +7,11 @@ from time import time
from contextlib import suppress
from typing import Optional, List, Dict, Set, Iterable, TYPE_CHECKING
from websockets.exceptions import ConnectionClosed, ConnectionClosedOK
from websockets.client import WebSocketClientProtocol, connect as websocket_connect
try:
from websockets.exceptions import ConnectionClosed, ConnectionClosedOK
from websockets.client import WebSocketClientProtocol, connect as websocket_connect
except ModuleNotFoundError as exc:
raise ImportError("You have to run 'pip install websockets' first") from exc
from exceptions import MinerException
from utils import task_wrapper, create_nonce