From e355d200630cfaa9d82cfb99597a8f1d1c58b746 Mon Sep 17 00:00:00 2001 From: NewSoupVi <57900059+NewSoupVi@users.noreply.github.com> Date: Wed, 8 Oct 2025 07:22:14 +0200 Subject: [PATCH] =?UTF-8?q?WebHost:=20Don't=20show=20e.=5F=5Fcause=5F=5F?= =?UTF-8?q?=20on=20the=20generation=20error=20page=C2=A0#5521?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebHostLib/generate.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/WebHostLib/generate.py b/WebHostLib/generate.py index a5147f66..0b007c0a 100644 --- a/WebHostLib/generate.py +++ b/WebHostLib/generate.py @@ -97,8 +97,6 @@ def start_generation(options: dict[str, dict | str], meta: dict[str, Any]): from .autolauncher import handle_generation_failure handle_generation_failure(e) meta["error"] = format_exception(e) - if e.__cause__: - meta["source"] = format_exception(e.__cause__) details = json.dumps(meta, indent=4).strip() return render_template("seedError.html", seed_error=meta["error"], details=details) @@ -113,8 +111,6 @@ def start_generation(options: dict[str, dict | str], meta: dict[str, Any]): from .autolauncher import handle_generation_failure handle_generation_failure(e) meta["error"] = format_exception(e) - if e.__cause__: - meta["source"] = format_exception(e.__cause__) details = json.dumps(meta, indent=4).strip() return render_template("seedError.html", seed_error=meta["error"], details=details) @@ -190,8 +186,6 @@ def gen_game(gen_options: dict, meta: dict[str, Any] | None = None, owner=None, meta["error"] = ("Allowed time for Generation exceeded, " + "please consider generating locally instead. " + format_exception(e)) - if e.__cause__: - meta["source"] = format_exception(e.__cause__) gen.meta = json.dumps(meta) commit() except BaseException as e: @@ -202,8 +196,6 @@ def gen_game(gen_options: dict, meta: dict[str, Any] | None = None, owner=None, gen.state = STATE_ERROR meta = json.loads(gen.meta) meta["error"] = format_exception(e) - if e.__cause__: - meta["source"] = format_exception(e.__cause__) gen.meta = json.dumps(meta) commit() raise