Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed lint C408 on scaffolding template
  • Loading branch information
eadwinCode committed Jan 22, 2024
commit bad9aecd76e364a60e564267219f2bebcf34c55f
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ from ellar.samples.modules import HomeModule
class ApplicationModule(ModuleBase):
@exception_handler(404)
def exception_404_handler(cls, ctx: IExecutionContext, exc: Exception) -> Response:
return JSONResponse(dict(detail="Resource not found."), status_code=404)
return JSONResponse({"detail": "Resource not found."}, status_code=404)