clan-app: Move json.loads to try catch

This commit is contained in:
Qubasa
2025-07-08 17:38:24 +07:00
parent acab3b8905
commit 50cbe3c825
2 changed files with 9 additions and 6 deletions

View File

@@ -30,7 +30,7 @@ class LoggingMiddleware(Middleware):
if log_group is not None:
if not isinstance(log_group, list):
msg = f"Expected log_group to be a list, got {type(log_group)}"
raise TypeError(msg) # noqa: TRY301
raise TypeError(msg) # noqa: TRY301
log.warning(
f"Using log group {log_group} for {context.request.method_name} with op_key {context.request.op_key}"
)