Skip to content

Commit ced2f21

Browse files
authored
Update README.md
1 parent ad9996f commit ced2f21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ class CarModule(ModuleBase):
230230
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`.
231231
```python
232232
from ellar.common import Module, exception_handler
233-
from ellar.core import ModuleBase
233+
from ellar.core import IHostContext, ModuleBase
234234
from ellar.core.connection import Request
235235
from ellar.core.response import JSONResponse, Response
236236

@@ -241,7 +241,7 @@ from .apps.car.module import CarModule
241241
@Module(modules=[HomeModule, CarModule])
242242
class ApplicationModule(ModuleBase):
243243
@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:
245245
return JSONResponse(dict(detail="Resource not found."))
246246

247247
```

0 commit comments

Comments
 (0)