formatting fixes
This commit is contained in:
@@ -29,6 +29,7 @@ async def lifespan(app_instance: FastAPI) -> AsyncIterator[None]:
|
||||
yield
|
||||
# Shutdown: Add cleanup code here if needed
|
||||
|
||||
|
||||
# Instantiate app
|
||||
app = FastAPI(
|
||||
docs_url=docs_url,
|
||||
|
||||
@@ -58,9 +58,7 @@ def _initialize_token_repository() -> TokenRepositoryInterface:
|
||||
f"Ensure Redis is running and accessible. Error: {e}"
|
||||
) from e
|
||||
except Exception as e:
|
||||
raise RuntimeError(
|
||||
f"Failed to initialize Redis token repository: {e}"
|
||||
) from e
|
||||
raise RuntimeError(f"Failed to initialize Redis token repository: {e}") from e
|
||||
|
||||
|
||||
def get_token_repository() -> TokenRepositoryInterface:
|
||||
|
||||
Reference in New Issue
Block a user