refactor: Remove unused HTTPException imports from routers
After removing all try/except blocks that used HTTPException for domain exception conversion, these imports are no longer needed in the routers. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -2,7 +2,7 @@ from __future__ import annotations
|
||||
|
||||
from typing import Annotated
|
||||
|
||||
from fastapi import APIRouter, HTTPException, Path, Query, Request, status
|
||||
from fastapi import APIRouter, Path, Query, Request, status
|
||||
|
||||
from app.dependencies import (
|
||||
AppDep,
|
||||
@@ -12,21 +12,6 @@ from app.dependencies import (
|
||||
Fail2BanStartCommandDep,
|
||||
PendingRecoveryDep,
|
||||
)
|
||||
from app.exceptions import (
|
||||
ActionNameError,
|
||||
ActionNotFoundError,
|
||||
ConfigOperationError,
|
||||
ConfigValidationError,
|
||||
ConfigWriteError,
|
||||
Fail2BanConnectionError,
|
||||
FilterNameError,
|
||||
FilterNotFoundError,
|
||||
JailAlreadyActiveError,
|
||||
JailAlreadyInactiveError,
|
||||
JailNameError,
|
||||
JailNotFoundError,
|
||||
JailNotFoundInConfigError,
|
||||
)
|
||||
from app.models.config import (
|
||||
ActivateJailRequest,
|
||||
AddLogPathRequest,
|
||||
|
||||
Reference in New Issue
Block a user