Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions backend/apps/system/crud/assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from common.core.db import engine
from common.core.sqlbot_cache import cache
from common.utils.aes_crypto import simple_aes_decrypt
from common.utils.utils import equals_ignore_case, get_domain_list, string_to_numeric_hash
from common.utils.utils import SQLBotLogUtil, equals_ignore_case, get_domain_list, string_to_numeric_hash
from common.core.deps import Trans


Expand Down Expand Up @@ -145,7 +145,8 @@ def get_ds_from_api(self):
else:
raise Exception(f"Failed to get datasource list from {endpoint}, error: {result_json.get('message')}")
else:
raise Exception(f"Failed to get datasource list from {endpoint}, status code: {res.status_code}")
SQLBotLogUtil.error(f"Failed to get datasource list from {endpoint}, response: {res}")
raise Exception(f"Failed to get datasource list from {endpoint}, response: {res}")

def get_first_element(self, text: str):
parts = re.split(r'[,;]', text.strip())
Expand Down