🐛 Fix unhandled raise

This commit is contained in:
itskovacs 2025-10-28 18:20:59 +01:00
parent 6861860b9d
commit 9f966117af

View File

@ -62,7 +62,7 @@ def verify_exists_and_owns(username: str, obj) -> None:
raise HTTPException(status_code=404, detail="The resource does not exist")
if obj.user != username:
raise PermissionError
raise HTTPException(status_code=403, detail="Forbidden")
return None