From dd4e6e11affbbef98d7aeb8d8840271810732c5e Mon Sep 17 00:00:00 2001 From: Jennifer Taylor Date: Thu, 13 Aug 2026 01:30:07 +0000 Subject: [PATCH] More details in log when failing to jsonify. --- bemani/frontend/app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bemani/frontend/app.py b/bemani/frontend/app.py index 87a3a25..adf4e04 100644 --- a/bemani/frontend/app.py +++ b/bemani/frontend/app.py @@ -119,10 +119,12 @@ def loginprohibited(func: Callable) -> Callable: def jsonify(func: Callable) -> Callable: @wraps(func) def decoratedfunction(*args: Any, **kwargs: Any) -> Response: + resp = func(*args, **kwargs) try: - return flask_jsonify(func(*args, **kwargs)) + return flask_jsonify(resp) except Exception as e: print(traceback.format_exc()) + print(f"Failed to serialize object {type(resp)}: {resp}") return flask_jsonify( { "error": True,