mirror of
https://github.com/pacnpal/Pac-cogs.git
synced 2025-12-20 10:51:05 -05:00
fix(core): add fallback to absolute imports in commands.py
This commit is contained in:
@@ -6,7 +6,10 @@
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from .base import VideoArchiver
|
||||
try:
|
||||
from .base import VideoArchiver
|
||||
except ImportError:
|
||||
from videoarchiver.core.base import VideoArchiver
|
||||
|
||||
def setup_commands(cog: "VideoArchiver") -> None:
|
||||
"""Command setup is now handled in the VideoArchiver class"""
|
||||
|
||||
Reference in New Issue
Block a user