✨ add on_error as a base piece of middleware
This commit is contained in:
parent
d6beb92544
commit
be1232ebd5
@ -28,3 +28,6 @@ class SpiderwebMiddleware:
|
||||
self, request: Request, response: HttpResponse
|
||||
) -> HttpResponse | None:
|
||||
pass
|
||||
|
||||
def on_error(self, request: Request, e: Exception) -> HttpResponse | None:
|
||||
pass
|
Loading…
Reference in New Issue
Block a user