mirror of
https://github.com/pacnpal/Pac-cogs.git
synced 2025-12-20 02:41:06 -05:00
Fix import issues:
- Add __all__ list to exceptions.py - Fix absolute imports to use relative imports - Fix duplicate imports - Fix truncated code in download_core.py - Add missing imports and type hints - Fix indentation and formatting issues
This commit is contained in:
@@ -7,11 +7,11 @@ import subprocess
|
||||
from datetime import datetime
|
||||
from typing import Dict, Optional, Callable, Set, Tuple
|
||||
|
||||
from videoarchiver.ffmpeg.ffmpeg_manager import FFmpegManager
|
||||
from videoarchiver.ffmpeg.exceptions import CompressionError
|
||||
from videoarchiver.utils.exceptions import VideoVerificationError
|
||||
from videoarchiver.utils.file_operations import FileOperations
|
||||
from videoarchiver.utils.progress_handler import ProgressHandler
|
||||
from ..ffmpeg.ffmpeg_manager import FFmpegManager
|
||||
from ..ffmpeg.exceptions import CompressionError
|
||||
from .exceptions import VideoVerificationError
|
||||
from .file_operations import FileOperations
|
||||
from .progress_handler import ProgressHandler
|
||||
|
||||
logger = logging.getLogger("VideoArchiver")
|
||||
|
||||
@@ -207,4 +207,5 @@ class CompressionHandler:
|
||||
self._active_processes.discard(process)
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"Compression attempt failed: {str
|
||||
logger.error(f"Compression attempt failed: {str(e)}")
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user