Skip to content

Commit

Permalink
Make compatible w/ ddtrace
Browse files Browse the repository at this point in the history
  • Loading branch information
derekgliwa committed Sep 23, 2024
1 parent 7dccfa8 commit ec914ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fasthtml/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ def __init__(self, debug=False, routes=None, middleware=None, exception_handlers
def _not_found(req, exc): return Response('404 Not Found', status_code=404)
exception_handlers[404] = _not_found
excs = {k:_wrap_ex(v, hdrs, ftrs, htmlkw, bodykw) for k,v in exception_handlers.items()}
super().__init__(debug, routes, middleware, excs, on_startup=on_startup, on_shutdown=on_shutdown, lifespan=lifespan)
super().__init__(debug, routes, middleware=middleware, exception_handlers=excs, on_startup=on_startup, on_shutdown=on_shutdown, lifespan=lifespan)
self.router = RouterX(self, routes)

def ws(self, path:str, conn=None, disconn=None, name=None):
Expand Down
2 changes: 1 addition & 1 deletion nbs/api/00_core.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1402,7 +1402,7 @@
" def _not_found(req, exc): return Response('404 Not Found', status_code=404) \n",
" exception_handlers[404] = _not_found\n",
" excs = {k:_wrap_ex(v, hdrs, ftrs, htmlkw, bodykw) for k,v in exception_handlers.items()}\n",
" super().__init__(debug, routes, middleware, excs, on_startup=on_startup, on_shutdown=on_shutdown, lifespan=lifespan)\n",
" super().__init__(debug, routes, middleware=middleware, exception_handlers=excs, on_startup=on_startup, on_shutdown=on_shutdown, lifespan=lifespan)\n",
" self.router = RouterX(self, routes)\n",
"\n",
" def ws(self, path:str, conn=None, disconn=None, name=None):\n",
Expand Down

0 comments on commit ec914ae

Please sign in to comment.