refactor(errors): replace silent exception handling in console and server
This commit is contained in:
1 parent
41deb48005
commit
c76c9bb7e8
20 files changed
+267
-107
No files matched your search
@@ -78,7 +78,8 @@ async def get_trace(trace_id: str, session_id: str = None, step_number: int = No
|
||||
try:
|
||||
payload_obj = json.loads(trace_dict["payload"])
|
||||
trace_dict["payload"] = media_service.unwrap_payload(payload_obj)
|
||||
except Exception:
|
||||
except (ValueError, TypeError, KeyError, AttributeError):
|
||||
# Non-JSON or unexpectedly shaped payload: serve it raw.
|
||||
pass
|
||||
|
||||
return trace_dict
|
||||
|
||||
Reference in new issue
Block a user