]> git.ipfire.org Git - dbl.git/commitdiff
api: Fix incorrect excpetion class name
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 3 Mar 2026 14:41:13 +0000 (14:41 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 3 Mar 2026 14:41:13 +0000 (14:41 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/dbl/api/reports.py

index 5b3e5fd2bdc95cf3a0cb9efed6194affe41ba183..9eedb179f9c3db69f54f0a7e551f2ffe30619a39 100644 (file)
@@ -138,7 +138,7 @@ async def close_report(
 
        # Check for permissions
        if not await report.has_perm(user, accept=data.accept):
-               raise fastapi.HTTPError(403, "You don't have permission to change this report")
+               raise fastapi.HTTPException(403, "You don't have permission to change this report")
 
        # Post the comment if one has been sent
        if data.comment: