We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a436094 commit 1cd62f1Copy full SHA for 1cd62f1
1 file changed
astrbot/core/star/base.py
@@ -1,8 +1,11 @@
1
from __future__ import annotations
2
3
+import logging
4
from typing import Any, Protocol
5
6
from astrbot.core import html_renderer
7
+
8
+logger = logging.getLogger("astrbot")
9
from astrbot.core.utils.command_parser import CommandParserMixin
10
from astrbot.core.utils.plugin_kv_store import PluginKVStoreMixin
11
@@ -26,7 +29,8 @@ def _get_context_config(self) -> Any:
26
29
if callable(get_config):
27
30
try:
28
31
return get_config()
- except Exception:
32
+ except Exception as e:
33
+ logger.debug(f"get_config() failed: {e}")
34
return None
35
return getattr(self.context, "_config", None)
36
0 commit comments