mirror of
https://github.com/pacnpal/Pac-cogs.git
synced 2025-12-20 10:51:05 -05:00
Added DiscordAPIError to utils/exceptions.py Fixed exception imports in config_manager.py Ensured consistent exception hierarchy Improved error messages and context URL Processing: Added pre-filtering for URLs before yt-dlp checks Added common video platform patterns Reduced error logging noise Improved URL validation efficiency FFmpeg Management: Enhanced FFmpeg binary verification Added robust subprocess handling Improved cleanup of failed operations Added detailed logging Configuration: Fixed ConfigurationError import Improved error handling in config operations Enhanced channel validation Better error propagation
29 lines
615 B
Python
29 lines
615 B
Python
"""Base exceptions for VideoArchiver"""
|
|
|
|
from .utils.exceptions import (
|
|
VideoArchiverError,
|
|
ConfigurationError,
|
|
VideoVerificationError,
|
|
QueueError,
|
|
FileCleanupError,
|
|
DiscordAPIError,
|
|
)
|
|
|
|
# Re-export base exceptions
|
|
__all__ = [
|
|
'VideoArchiverError',
|
|
'ConfigurationError',
|
|
'VideoVerificationError',
|
|
'QueueError',
|
|
'FileCleanupError',
|
|
'UpdateError',
|
|
'ProcessingError',
|
|
'ConfigError',
|
|
'DiscordAPIError',
|
|
]
|
|
|
|
# Alias exceptions for backward compatibility
|
|
ProcessingError = VideoArchiverError
|
|
ConfigError = ConfigurationError
|
|
UpdateError = VideoVerificationError
|