Move private things in modlog and redbot.core.errors (#6020)

This commit is contained in:
Jakub Kuczys
2025-01-27 00:49:03 +01:00
committed by GitHub
parent dcdef9d798
commit 8b1daf1ad0
6 changed files with 12 additions and 12 deletions

View File

@@ -11,7 +11,7 @@ except ModuleNotFoundError:
asyncpg = None
from ... import data_manager, errors
from ..base import BaseDriver, IdentifierData, ConfigCategory
from ..base import BaseDriver, IdentifierData, ConfigCategory, MissingExtraRequirements
from ..log import log
__all__ = ["PostgresDriver"]
@@ -41,7 +41,7 @@ class PostgresDriver(BaseDriver):
@classmethod
async def initialize(cls, **storage_details) -> None:
if asyncpg is None:
raise errors.MissingExtraRequirements(
raise MissingExtraRequirements(
"Red must be installed with the [postgres] extra to use the PostgreSQL driver"
)
cls._pool = await asyncpg.create_pool(**storage_details)