Skip to content
Snippets Groups Projects
Commit 93b81076 authored by supersonicwisd1's avatar supersonicwisd1
Browse files

resolving some typo error

parent 7310c0a3
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# - Storage provider protocol # - Storage provider protocol
# """ # """
from .base import SQLStorageBackend from .base import StorageBackend
# from .backends.postgresql import PostgreSQLStorage # from .backends.postgresql import PostgreSQLStorage
# from .backends.mongodb import MongoDBStorageBackend # from .backends.mongodb import MongoDBStorageBackend
# from .backends.redis import RedisStorageBackend # from .backends.redis import RedisStorageBackend
...@@ -33,7 +33,7 @@ from .base import SQLStorageBackend ...@@ -33,7 +33,7 @@ from .base import SQLStorageBackend
# 'sqlite': SQLiteStorage # 'sqlite': SQLiteStorage
# } # }
def get_storage_backend(backend_type: str) -> type[SQLStorageBackend]: def get_storage_backend(backend_type: str) -> type[StorageBackend]:
"""Get storage backend class by type.""" """Get storage backend class by type."""
if backend_type not in STORAGE_BACKENDS: if backend_type not in STORAGE_BACKENDS:
raise ValueError(f"Unknown storage backend: {backend_type}") raise ValueError(f"Unknown storage backend: {backend_type}")
......
...@@ -143,3 +143,7 @@ class IntegrationError(ActivityPubException): ...@@ -143,3 +143,7 @@ class IntegrationError(ActivityPubException):
class MiddlewareError(ActivityPubException): class MiddlewareError(ActivityPubException):
"""Raised when middleware-related errors occur.""" """Raised when middleware-related errors occur."""
pass pass
class ConfigError(ActivityPubException):
"""Raised when configuration-related errors occur."""
pass
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment