add on_error as a base piece of middleware

This commit is contained in:
Joe Kaufeld 2024-08-29 00:54:25 -04:00
parent d6beb92544
commit be1232ebd5

View File

@ -28,3 +28,6 @@ class SpiderwebMiddleware:
self, request: Request, response: HttpResponse self, request: Request, response: HttpResponse
) -> HttpResponse | None: ) -> HttpResponse | None:
pass pass
def on_error(self, request: Request, e: Exception) -> HttpResponse | None:
pass