fix(update_checker): add fallback to absolute imports in update_checker.py

This commit is contained in:
pacnpal
2024-11-17 22:46:55 +00:00
parent 461a4ccbb2
commit 57bfeda9e1

View File

@@ -16,7 +16,12 @@ import tempfile
import os
import shutil
from .utils.exceptions import UpdateError
try:
# Try relative imports first
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")