123
This commit is contained in:
parent
b96fbc2987
commit
c73f109586
2
main.py
2
main.py
@ -322,7 +322,7 @@ async def on_app_command_error(interaction, error):
|
|||||||
# Let's import it, assuming it's safe to do so at the top level.
|
# Let's import it, assuming it's safe to do so at the top level.
|
||||||
# If it causes circular imports, CORE_COGS needs to be defined elsewhere or passed differently.
|
# If it causes circular imports, CORE_COGS needs to be defined elsewhere or passed differently.
|
||||||
try:
|
try:
|
||||||
from cogs import settings_cog # Import the cog itself
|
from cogs import settings_cog
|
||||||
except ImportError:
|
except ImportError:
|
||||||
log.error("Could not import settings_cog.py for CORE_COGS definition. Cog checks might fail.")
|
log.error("Could not import settings_cog.py for CORE_COGS definition. Cog checks might fail.")
|
||||||
settings_cog = None # Define as None to avoid NameError later
|
settings_cog = None # Define as None to avoid NameError later
|
||||||
|
Loading…
x
Reference in New Issue
Block a user