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:
2026-04-23 16:01:44 +02:00
parent 5480dce221
commit fd685e8211
5 changed files with 5 additions and 38 deletions

View File

@@ -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,