Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
10 changes: 9 additions & 1 deletion django_cf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@ def start_response(status_str, response_headers):
status = status_str
headers = response_headers

resp = app(wsgi_request, start_response)
try:
resp = app(wsgi_request, start_response)
except Exception as exc:
# library should always print or console log the exception, because a production django should not show end users errors
print('Caught exception while loading application:', exc.__str__())
print(exc)

raise exc

status = resp.status_code
headers = resp.headers

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "django-cf"
version = "0.2.8"
version = "0.2.9"
authors = [
{ name="Gabriel Massadas" },
]
Expand Down
6 changes: 3 additions & 3 deletions templates/d1/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions templates/durable-objects/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.