mirror of
https://github.com/pacnpal/Pac-cogs.git
synced 2025-12-20 10:51:05 -05:00
fix(config): add fallback to absolute imports in validation_manager.py
This commit is contained in:
@@ -2,10 +2,17 @@
|
||||
|
||||
import logging
|
||||
from typing import Any, Dict, List, Union
|
||||
|
||||
try:
|
||||
# Try relative imports first
|
||||
from .exceptions import ConfigurationError as ConfigError
|
||||
except ImportError:
|
||||
# Fall back to absolute imports if relative imports fail
|
||||
from videoarchiver.config.exceptions import ConfigurationError as ConfigError
|
||||
|
||||
logger = logging.getLogger("ConfigValidation")
|
||||
|
||||
|
||||
class ValidationManager:
|
||||
"""Manages validation of configuration settings"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user