add hbc and prepare for package
This commit is contained in:
+3
-2
@@ -9,6 +9,7 @@ from . import __version__
|
||||
|
||||
from . import udp
|
||||
from . import hbdclass
|
||||
|
||||
from . import ws as ws_mod
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@@ -73,7 +74,7 @@ async def _run_async(config):
|
||||
|
||||
# prepare runtime dependencies
|
||||
import threading
|
||||
from . import hbdclass
|
||||
# from . import hbdclass
|
||||
from . import http as http_mod
|
||||
from . import dns as dns_mod
|
||||
from . import notify as notify_mod
|
||||
@@ -254,7 +255,7 @@ def load_pickled_hosts(config, hbdclass):
|
||||
lastfm = ["", "", ""]
|
||||
pickf.close()
|
||||
except Exception as e:
|
||||
print(("load pickled failed: %s" % e))
|
||||
logger.exception("load pickled failed: %s", e)
|
||||
os.unlink(pickfile)
|
||||
hbdclass.Connection.htab = {}
|
||||
for h in list(hbdclass.Host.hosts.keys()):
|
||||
|
||||
Reference in New Issue
Block a user