From 4135fc6ddb9457b19c1ac73835d755f6de319328 Mon Sep 17 00:00:00 2001 From: John Newman Date: Mon, 9 Oct 2023 17:15:15 +0100 Subject: [PATCH] fix analytics circular import --- mautrix_facebook/__main__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mautrix_facebook/__main__.py b/mautrix_facebook/__main__.py index 9be78ad0..f20d089f 100644 --- a/mautrix_facebook/__main__.py +++ b/mautrix_facebook/__main__.py @@ -23,7 +23,6 @@ from mautrix.bridge import Bridge from mautrix.types import RoomID, UserID -from .analytics import init as init_analytics from .config import Config from .db import init as init_db, upgrade_table from .matrix import MatrixHandler @@ -35,6 +34,9 @@ from .version import linkified_version, version from .web import PublicBridgeWebsite +# analytics is skipped to avoid a circular import +from .analytics import init as init_analytics # isort:skip + class MessengerBridge(Bridge): name = "mautrix-facebook"