mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-09 09:26:55 +08:00
fix: restore multi-exception syntax
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user