fix: restore multi-exception syntax

This commit is contained in:
jxxghp
2026-09-02 20:22:57 +08:00
parent e5f6aaad48
commit c20515971a
23 changed files with 47 additions and 47 deletions
@@ -386,7 +386,7 @@ def _jsonable(value: Any, *, depth: int = 0) -> Any:
return _jsonable(data, depth=depth + 1)
try:
return _jsonable(dict(value), depth=depth + 1)
except TypeError, ValueError:
except (TypeError, ValueError):
return str(value)