Skip to content

Commit

Permalink
Resolve circular import
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Nov 30, 2023
1 parent fc45027 commit 18d9875
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions chatbot_core/utils/bot_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@
from klat_connector import start_socket

from chatbot_core.utils.logger import LOG

# Causes circular imports
# from chatbot_core import ChatBot
from chatbot_core.v2 import ChatBot as ChatBotV2
# from chatbot_core.v2 import ChatBot as ChatBotV2

def get_ip_address():
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
Expand Down Expand Up @@ -650,7 +652,7 @@ def _find_bot_modules():


def run_mq_bot(chatbot_name: str, vhost: str = '/chatbots',
run_kwargs: dict = None, init_kwargs: dict = None) -> ChatBotV2:
run_kwargs: dict = None, init_kwargs: dict = None):
"""
Get an initialized MQ Chatbot instance
@param chatbot_name: chatbot entrypoint name and configuration key
Expand Down

0 comments on commit 18d9875

Please sign in to comment.