File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ class CarModule(ModuleBase):
230
230
Ellar is not aware of ` CarModule ` yet, so we need to add it to the ` modules ` list of ` ApplicationModule ` at the ` carsite/root_module.py ` .
231
231
``` python
232
232
from ellar.common import Module, exception_handler
233
- from ellar.core import ModuleBase
233
+ from ellar.core import IHostContext, ModuleBase
234
234
from ellar.core.connection import Request
235
235
from ellar.core.response import JSONResponse, Response
236
236
@@ -241,7 +241,7 @@ from .apps.car.module import CarModule
241
241
@Module (modules = [HomeModule, CarModule])
242
242
class ApplicationModule (ModuleBase ):
243
243
@exception_handler (404 )
244
- def exception_404_handler (cls , request : Request , exc : Exception ) -> Response:
244
+ def exception_404_handler (cls , context : IHostContext , exc : Exception ) -> Response:
245
245
return JSONResponse(dict (detail = " Resource not found." ))
246
246
247
247
```
You can’t perform that action at this time.
0 commit comments