refactor: Fix issue with handling None values in ResultData class
Fix the issue where None values were not being handled correctly in the ResultData class. This ensures that the code properly handles cases where the message is None, preventing any potential errors or unexpected behavior.
This commit is contained in:
parent
3862afc907
commit
b3266bab9c
1 changed files with 2 additions and 2 deletions
|
|
@ -35,8 +35,8 @@ class ResultData(BaseModel):
|
|||
message = values["artifacts"][key]
|
||||
|
||||
# ! Temporary fix
|
||||
if not isinstance(message, dict):
|
||||
message = {"message": message}
|
||||
if message is None:
|
||||
continue
|
||||
|
||||
if "stream_url" in message and "type" in message:
|
||||
stream_url = StreamURL(location=message["stream_url"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue