We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fc42b7 commit 55b92dfCopy full SHA for 55b92df
src/network/__init__.py
@@ -2,17 +2,21 @@
2
Network subsystem package
3
"""
4
5
-from .connectionpool import BMConnectionPool
+try:
6
+ from .announcethread import AnnounceThread
7
+ from .connectionpool import BMConnectionPool
8
+except ImportError:
9
+ AnnounceThread = None
10
+ BMConnectionPool = None
11
from .threads import StoppableThread
12
13
-__all__ = ["BMConnectionPool", "StoppableThread"]
14
+__all__ = ["AnnounceThread", "BMConnectionPool", "StoppableThread"]
15
16
17
def start(config, state):
18
"""Start network threads"""
19
from .addrthread import AddrThread
- from .announcethread import AnnounceThread
20
from .dandelion import Dandelion
21
from .downloadthread import DownloadThread
22
from .invthread import InvThread
0 commit comments