python-fasthtml 0.14.19__tar.gz → 0.14.20__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. {python_fasthtml-0.14.19/python_fasthtml.egg-info → python_fasthtml-0.14.20}/PKG-INFO +1 -1
  2. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/fasthtml/__init__.py +1 -1
  3. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/fasthtml/core.py +3 -1
  4. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20/python_fasthtml.egg-info}/PKG-INFO +1 -1
  5. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/CONTRIBUTING.md +0 -0
  6. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/LICENSE +0 -0
  7. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/MANIFEST.in +0 -0
  8. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/README.md +0 -0
  9. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/fasthtml/_modidx.py +0 -0
  10. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/fasthtml/authmw.py +0 -0
  11. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/fasthtml/basics.py +0 -0
  12. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/fasthtml/cli.py +0 -0
  13. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/fasthtml/common.py +0 -0
  14. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/fasthtml/components.py +0 -0
  15. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/fasthtml/components.pyi +0 -0
  16. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/fasthtml/core.pyi +0 -0
  17. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/fasthtml/fastapp.py +0 -0
  18. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/fasthtml/ft.py +0 -0
  19. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/fasthtml/js.py +0 -0
  20. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/fasthtml/jupyter.py +0 -0
  21. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/fasthtml/katex.js +0 -0
  22. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/fasthtml/live_reload.py +0 -0
  23. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/fasthtml/oauth.py +0 -0
  24. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/fasthtml/pico.py +0 -0
  25. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/fasthtml/starlette.py +0 -0
  26. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/fasthtml/stripe_otp.py +0 -0
  27. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/fasthtml/svg.py +0 -0
  28. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/fasthtml/toaster.py +0 -0
  29. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/fasthtml/xtend.py +0 -0
  30. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/fasthtml/xtend.pyi +0 -0
  31. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/pyproject.toml +0 -0
  32. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/python_fasthtml.egg-info/SOURCES.txt +0 -0
  33. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/python_fasthtml.egg-info/dependency_links.txt +0 -0
  34. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/python_fasthtml.egg-info/entry_points.txt +0 -0
  35. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/python_fasthtml.egg-info/requires.txt +0 -0
  36. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/python_fasthtml.egg-info/top_level.txt +0 -0
  37. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/setup.cfg +0 -0
  38. {python_fasthtml-0.14.19 → python_fasthtml-0.14.20}/tests/test_toaster.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-fasthtml
3
- Version: 0.14.19
3
+ Version: 0.14.20
4
4
  Summary: The fastest way to create an HTML app
5
5
  Author-email: Jeremy Howard and contributors <github@jhoward.fastmail.fm>
6
6
  License-Expression: Apache-2.0
@@ -4,5 +4,5 @@ Modules:
4
4
 
5
5
  - `fasthtml.core`: The `FastHTML` subclass of `Starlette`."""
6
6
 
7
- __version__ = "0.14.19"
7
+ __version__ = "0.14.20"
8
8
  from .core import *
@@ -607,7 +607,9 @@ def _wrap_ex(f, status_code, hdrs, ftrs, htmlkw, bodykw, body_wrap):
607
607
  req.hdrs,req.ftrs,req.htmlkw,req.bodykw = map(deepcopy, (hdrs, ftrs, htmlkw, bodykw))
608
608
  req.body_wrap = body_wrap
609
609
  res = await _handle(f, req, exc)
610
- return _resp(req, res, status_code=status_code)
610
+ code = status_code if isinstance(status_code, int) else getattr(exc, 'status_code', 500)
611
+ if not isinstance(code, int): code = 500
612
+ return _resp(req, res, status_code=code)
611
613
  return _f
612
614
 
613
615
  # %% ../nbs/api/00_core.ipynb #bc323fd4
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-fasthtml
3
- Version: 0.14.19
3
+ Version: 0.14.20
4
4
  Summary: The fastest way to create an HTML app
5
5
  Author-email: Jeremy Howard and contributors <github@jhoward.fastmail.fm>
6
6
  License-Expression: Apache-2.0