From f7491f0b5193c97237930fcf07ecc386b9555508 Mon Sep 17 00:00:00 2001 From: Anthony Donlon Date: Fri, 21 Nov 2025 09:30:51 +0800 Subject: [PATCH] miscellaneous fixes --- cloudflare_error_page/__init__.py | 2 +- editor/server/examples.py | 1 - examples/catastrophic.json | 2 +- examples/default.json | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cloudflare_error_page/__init__.py b/cloudflare_error_page/__init__.py index 28895a7..db47b0f 100644 --- a/cloudflare_error_page/__init__.py +++ b/cloudflare_error_page/__init__.py @@ -40,4 +40,4 @@ def render(params: dict, allow_html: bool=True, use_cdn: bool=True) -> str: params['what_happened'] = html.escape(params.get('what_happened', '')) params['what_can_i_do'] = html.escape(params.get('what_can_i_do', '')) - return template.render(params=params, resources_use_cdn=use_cdn) + return default_template.render(params=params, resources_use_cdn=use_cdn) diff --git a/editor/server/examples.py b/editor/server/examples.py index d5ae820..ca21f16 100644 --- a/editor/server/examples.py +++ b/editor/server/examples.py @@ -40,7 +40,6 @@ def get_page_params(name: str) -> dict: def index(name: str): name = os.path.basename(name) # keep only the base name lower_name = name.lower() - print(lower_name, name) if name != lower_name: return redirect(lower_name) else: diff --git a/examples/catastrophic.json b/examples/catastrophic.json index 3358f79..a9b87d4 100644 --- a/examples/catastrophic.json +++ b/examples/catastrophic.json @@ -16,5 +16,5 @@ }, "error_source": "cloudflare", "what_happened": "

There is a catastrophic failure.

", - "what_can_i_do": "

Please try again in a few years.

", + "what_can_i_do": "

Please try again in a few years.

" } \ No newline at end of file diff --git a/examples/default.json b/examples/default.json index e70e660..5ae9244 100644 --- a/examples/default.json +++ b/examples/default.json @@ -14,5 +14,5 @@ }, "error_source": "cloudflare", "what_happened": "

There is an internal server error on Cloudflare\"s network.

", - "what_can_i_do": "

Please try again in a few minutes.

", + "what_can_i_do": "

Please try again in a few minutes.

" } \ No newline at end of file