Skip to content

Commit

Permalink
fixed lint C408 on scaffolding template
Browse files Browse the repository at this point in the history
  • Loading branch information
eadwinCode committed Jan 22, 2024
1 parent d8da062 commit bad9aec
Showing 1 changed file with 1 addition and 1 deletion.
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)

0 comments on commit bad9aec

Please sign in to comment.