Parametrable error names

This commit is contained in:
2025-01-29 22:44:08 +01:00
parent 3893f2aa19
commit aed7a520bd
2 changed files with 63 additions and 19 deletions
+2
View File
@@ -28,6 +28,7 @@ def exception_handler(
*,
json: bool = False,
post_redirect: str | None = None,
error_name: str = 'error',
**superkwargs,
) -> Callable[[ViewCallable], ViewCallable]:
def outer(function: ViewCallable, /) -> ViewCallable:
@@ -42,6 +43,7 @@ def exception_handler(
file,
json=json,
post_redirect=post_redirect,
error_name=error_name,
**kwargs,
**superkwargs,
)