mirror of
https://github.com/pacnpal/Pac-cogs.git
synced 2025-12-20 10:51:05 -05:00
fix(update_checker): add fallback to absolute imports in update_checker.py
This commit is contained in:
@@ -16,7 +16,12 @@ import tempfile
|
|||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
|
try:
|
||||||
|
# Try relative imports first
|
||||||
from .utils.exceptions import UpdateError
|
from .utils.exceptions import UpdateError
|
||||||
|
except ImportError:
|
||||||
|
# Fall back to absolute imports if relative imports fail
|
||||||
|
from videoarchiver.utils.exceptions import UpdateError
|
||||||
|
|
||||||
logger = logging.getLogger("VideoArchiver")
|
logger = logging.getLogger("VideoArchiver")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user