add hbc and prepare for package

This commit is contained in:
2026-02-06 15:19:14 -05:00
parent 4df700e4ef
commit 3ca619e86d
15 changed files with 574 additions and 176 deletions
+3 -2
View File
@@ -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()):