Skip to content

Commit

Permalink
fix(config): add fallback to absolute imports in role_manager.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pacnpal committed Nov 17, 2024
1 parent 525c7f3 commit cda72f4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion videoarchiver/config/role_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@
from typing import Dict, List, Set, Tuple, Optional, Any
import discord # type: ignore

from .exceptions import ConfigurationError as ConfigError
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("RoleManager")


class RoleManager:
"""Manages Discord role configurations"""

Expand Down

0 comments on commit cda72f4

Please sign in to comment.